コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
ファイル: Sim.cs プロジェクト: ddfczm/Project-Dollhouse
 /// <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);
 }
コード例 #6
0
ファイル: Sim.cs プロジェクト: ddfczm/Project-Dollhouse
 /// <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);
 }