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

DestroyConstraint() public method

public DestroyConstraint ( BulletWorld pWorld, BulletConstraint pConstraint ) : bool
pWorld BulletWorld
pConstraint BulletConstraint
return bool
        public override bool DestroyConstraint(BulletWorld pWorld, BulletConstraint pConstraint)
        {
            DiscreteDynamicsWorld world = (pWorld as BulletWorldXNA).world;
            TypedConstraint constraint = (pConstraint as BulletConstraintXNA).constrain;
            world.RemoveConstraint(constraint);
            return true;
        }
BSAPIXNA