示例#1
0
 public void AddChunk(FullChunkObject mesh)
 {
     if (mesh == null)
     {
         return;
     }
     PhysicsWorld.Add(mesh);
 }
示例#2
0
 /// <summary>
 /// Adds a new joint to the region.
 /// </summary>
 /// <param name="joint">The joint to add.</param>
 public void AddJoint(InternalBaseJoint joint)
 {
     Joints.Add(joint);
     joint.One.Joints.Add(joint);
     joint.Two.Joints.Add(joint);
     joint.JID = jID++;
     joint.Enable();
     if (joint is BaseJoint pjoint)
     {
         pjoint.CurrentJoint = pjoint.GetBaseJoint();
         PhysicsWorld.Add(pjoint.CurrentJoint);
     }
     SendToAll(new AddJointPacketOut(joint));
 }