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

BSLinkset() protected method

protected BSLinkset ( BSScene scene, BSPrimLinkable parent ) : System
scene BSScene
parent BSPrimLinkable
return System
        protected BSLinkset(BSScene scene, BSPrimLinkable parent)
        {
            // A simple linkset of one (no children)
            LinksetID = m_nextLinksetID++;
            // We create LOTS of linksets.
            if (m_nextLinksetID <= 0)
                m_nextLinksetID = 1;
            PhysicsScene = scene;
            LinksetRoot = parent;
            //m_children = new HashSet<BSPrimLinkable>();
            m_children = new Dictionary<BSPrimLinkable, BSLinkInfo>();
            LinksetMass = parent.RawMass;
            Rebuilding = false;
            RebuildScheduled = false;

            parent.ClearDisplacement();
        }