Universe.Physics.BulletSPlugin.BSAPIXNA.SetCollisionShape C# (CSharp) Method

SetCollisionShape() public method

public SetCollisionShape ( BulletWorld pWorld, BulletBody pCollisionObject, BulletShape pShape ) : void
pWorld BulletWorld
pCollisionObject BulletBody
pShape BulletShape
return void
        public override void SetCollisionShape(BulletWorld pWorld, BulletBody pCollisionObject, BulletShape pShape)
        {
            // 20131224 not used        DiscreteDynamicsWorld world = (pWorld as BulletWorldXNA).world;
            CollisionObject collisionObject = (pCollisionObject as BulletBodyXNA).body;
            if (pShape == null)
            {
                collisionObject.SetCollisionShape(new EmptyShape());
            }
            else
            {
                CollisionShape shape = (pShape as BulletShapeXNA).shape;
                collisionObject.SetCollisionShape(shape);
            }
        }
BSAPIXNA