another large series of changes, related to the refactoring.
CompoundShapes are tricky to manage with respect to persistent contact points and swapped order of btCollisionObjects, During dispatch, finding an algorith etc. order can be swapped. fixed several other issues, related to SimpleBroadphase (removing a proxy was not working)
This commit is contained in:
@@ -42,15 +42,11 @@ void btCollisionObject::ForceActivationState(int newState)
|
||||
|
||||
void btCollisionObject::activate()
|
||||
{
|
||||
if (!(m_collisionFlags & isStatic))
|
||||
if (!(m_collisionFlags & (CF_STATIC_OBJECT|CF_KINEMATIC_OJBECT)))
|
||||
{
|
||||
SetActivationState(1);
|
||||
SetActivationState(ACTIVE_TAG);
|
||||
m_deactivationTime = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
bool btCollisionObject::mergesSimulationIslands() const
|
||||
{
|
||||
//static objects, and object without contact response don't merge islands
|
||||
return ( !(m_collisionFlags & (isStatic | noContactResponse)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user