Universe.Physics.BulletSPlugin.BSLinkset.RemoveMeFromLinkset C# (CSharp) Method

RemoveMeFromLinkset() public method

public RemoveMeFromLinkset ( BSPrimLinkable child, bool inTaintTime ) : BSLinkset
child BSPrimLinkable
inTaintTime bool
return BSLinkset
        public BSLinkset RemoveMeFromLinkset(BSPrimLinkable child, bool inTaintTime)
        {
            lock (m_linksetActivityLock)
            {
                if (IsRoot(child))
                {
                    // Cannot remove the root from a linkset.
                    return this;
                }
            }

            RemoveChildFromLinkset(child, inTaintTime);         // this establishes it's own lock
            LinksetMass = ComputeLinksetMass();
 
            // The child is down to a linkset of just itself
            return BSLinkset.Factory(PhysicsScene, child);
        }