A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod.
Inheritance: Joint
Beispiel #1
0
 /// <summary>
 /// Adds a body and the pre-made distance joint.
 /// Should only be used for deserialization.
 /// </summary>
 public void AddBodyAndJoint(Body argBody, DistanceJoint argJoint)
 {
     AddBody(argBody);
     if (Joints == null)
     {
         Joints = new List <DistanceJoint>();
     }
     Joints.Add(argJoint);
 }
 /// <summary>
 /// Adds a body and the pre-made distance joint.
 /// Should only be used for deserialization.
 /// </summary>
 public void AddBodyAndJoint(Body argBody, DistanceJoint argJoint)
 {
     AddBody(argBody);
     if (Joints == null)
     {
         Joints = new List<DistanceJoint>();
     }
     Joints.Add(argJoint);
 }
 /// <summary>
 /// Adds a body and the pre-made distance joint.
 /// Should only be used for deserialization.
 /// </summary>
 public virtual void addBodyAndJoint(Body argBody, DistanceJoint argJoint)
 {
     addBody(argBody);
     if (joints == null)
     {
         joints = new List<DistanceJoint>();
     }
     joints.Add(argJoint);
 }