BulletSim: remove collision cache clearing logic for physical objects.

This fixes constraints from getting messed up when properties change.
0.7.6-extended
Robert Adams 2013-09-11 16:48:15 -07:00 committed by Justin Clark-Casey (justincc)
parent 1217785155
commit 10152815ac
1 changed files with 5 additions and 2 deletions

View File

@ -302,13 +302,16 @@ public abstract class BSPhysObject : PhysicsActor
{
if (PhysBody.HasPhysicalBody)
{
// Clear the collision cache since we've changed some properties.
PhysScene.PE.ClearCollisionProxyCache(PhysScene.World, PhysBody);
if (IsPhysical)
{
// Physical objects might need activating
PhysScene.PE.Activate(PhysBody, forceIt);
}
else
{
// Clear the collision cache since we've changed some properties.
PhysScene.PE.ClearCollisionProxyCache(PhysScene.World, PhysBody);
}
}
}