BulletSim: nearly complete in conversion from BulletSimAPI to BSAPITemplate. Only initialization and debug fuctions left.

This commit is contained in:
Robert Adams
2012-12-30 14:26:57 -08:00
parent 5379d6d112
commit c2a7af18b6
15 changed files with 372 additions and 201 deletions

View File

@@ -72,12 +72,12 @@ public class BulletBody
public bool HasPhysicalBody { get { return ptr != IntPtr.Zero; } }
// Apply the specificed collision mask into the physical world
public bool ApplyCollisionMask()
public bool ApplyCollisionMask(BSScene physicsScene)
{
// Should assert the body has been added to the physical world.
// (The collision masks are stored in the collision proxy cache which only exists for
// a collision body that is in the world.)
return BulletSimAPI.SetCollisionGroupMask2(ptr,
return physicsScene.PE.SetCollisionGroupMask(this,
BulletSimData.CollisionTypeMasks[collisionType].group,
BulletSimData.CollisionTypeMasks[collisionType].mask);
}