/// <summary> /// Adds a body mesh for this Sim. /// </summary> /// <param name="ID">The ID of the body mesh to add.</param> public void AddBodyMesh(ulong ID) { m_BodyMesh = new Mesh(); m_BodyMesh.Read(ContentManager.GetResourceFromLongID(ID)); m_BodyMesh.TransformVertices(SimSkeleton.RootBone); //m_BodyMesh.BlendVertices2(); m_BodyMesh.ProcessMesh(SimSkeleton, false); }
/// <summary> /// Adds a head mesh for this Sim. /// </summary> /// <param name="ID">The ID of the head mesh to add.</param> public void AddHeadMesh(ulong ID) { m_HeadMesh = new Mesh(); m_HeadMesh.Read(ContentManager.GetResourceFromLongID(ID)); m_HeadMesh.ProcessMesh(SimSkeleton, true); }
/// <summary> /// Adds a right hand mesh for this Sim. /// </summary> /// <param name="ID">The ID of the right hand mesh to add.</param> public void AddRHandMesh(ulong ID) { m_RightHand = new Mesh(); m_RightHand.Read(ContentManager.GetResourceFromLongID(ID)); m_RightHand.ProcessMesh(SimSkeleton, false); }