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

DuplicateCollisionShape() public method

public DuplicateCollisionShape ( BulletWorld pWorld, BulletShape pShape, uint id ) : BulletShape
pWorld BulletWorld
pShape BulletShape
id uint
return BulletShape
        public override BulletShape DuplicateCollisionShape(BulletWorld pWorld, BulletShape pShape, uint id)
        {
            CollisionShape shape1 = (pShape as BulletShapeXNA).shape;

            // TODO:  Turn this from a reference copy to a Value Copy.
            BulletShapeXNA shape2 = new BulletShapeXNA(shape1,
                BSShapeTypeFromBroadPhaseNativeType(shape1.GetShapeType()));

            return shape2;
        }
BSAPIXNA