예제 #1
0
 public DistanceJointDef()
 {
     Type = JointType.DistanceJoint;
     LocalAnchor1.Set(0.0f, 0.0f);
     LocalAnchor2.Set(0.0f, 0.0f);
     Length       = 1.0f;
     FrequencyHz  = 0.0f;
     DampingRatio = 0.0f;
 }
예제 #2
0
 public RevoluteJointDef()
 {
     Type = JointType.RevoluteJoint;
     LocalAnchor1.Set(0.0f, 0.0f);
     LocalAnchor2.Set(0.0f, 0.0f);
     ReferenceAngle = 0.0f;
     LowerAngle     = 0.0f;
     UpperAngle     = 0.0f;
     MaxMotorTorque = 0.0f;
     MotorSpeed     = 0.0f;
     EnableLimit    = false;
     EnableMotor    = false;
 }
예제 #3
0
 public PulleyJointDef()
 {
     Type = JointType.PulleyJoint;
     GroundAnchor1.Set(-1.0f, 1.0f);
     GroundAnchor2.Set(1.0f, 1.0f);
     LocalAnchor1.Set(-1.0f, 0.0f);
     LocalAnchor2.Set(1.0f, 0.0f);
     Length1          = 0.0f;
     MaxLength1       = 0.0f;
     Length2          = 0.0f;
     MaxLength2       = 0.0f;
     Ratio            = 1.0f;
     CollideConnected = true;
 }