Universe.Physics.BulletSPlugin.BSConstraintCollection.RemoveAndDestroyConstraint C# (CSharp) Method

RemoveAndDestroyConstraint() public method

public RemoveAndDestroyConstraint ( BSConstraint constrain ) : bool
constrain BSConstraint
return bool
        public bool RemoveAndDestroyConstraint(BSConstraint constrain)
        {
            bool removed = false;
            lock (m_constraints)
            {
                // remove the constraint from our collection
                removed = m_constraints.Remove(constrain);
            }
            // Dispose() is safe to call multiple times
            constrain.Dispose();
            return removed;
        }

Same methods

BSConstraintCollection::RemoveAndDestroyConstraint ( BulletBody body1 ) : bool
BSConstraintCollection::RemoveAndDestroyConstraint ( BulletBody body1, BulletBody body2 ) : bool