Universe.Physics.BulletSPlugin.BSLinksetConstraints.PhysicallyUnlinkAChildFromRoot C# (CSharp) Method

PhysicallyUnlinkAChildFromRoot() private method

private PhysicallyUnlinkAChildFromRoot ( BSPrimLinkable rootPrim, BSPrimLinkable childPrim ) : bool
rootPrim BSPrimLinkable
childPrim BSPrimLinkable
return bool
        bool PhysicallyUnlinkAChildFromRoot(BSPrimLinkable rootPrim, BSPrimLinkable childPrim)
        {
            bool ret = false;
            DetailLog(
                "{0},BSLinksetConstraint.PhysicallyUnlinkAChildFromRoot,taint,root={1},rBody={2},child={3},cBody={4}",
                rootPrim.LocalID,
                rootPrim.LocalID, rootPrim.PhysBody.AddrString,
                childPrim.LocalID, childPrim.PhysBody.AddrString);

            // Find the constraint for this link and get rid of it from the overall collection and from my list
            if (PhysicsScene.Constraints.RemoveAndDestroyConstraint(rootPrim.PhysBody, childPrim.PhysBody))
            {
                // Make the child refresh its location
                PhysicsScene.PE.PushUpdate(childPrim.PhysBody);
                ret = true;
            }

            return ret;
        }