Universe.Physics.BulletSPlugin.BSAPIXNA.SetCollisionShape C# (CSharp) Метод

SetCollisionShape() публичный Метод

public SetCollisionShape ( BulletWorld pWorld, BulletBody pCollisionObject, BulletShape pShape ) : void
pWorld BulletWorld
pCollisionObject BulletBody
pShape BulletShape
Результат 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