示例#1
0
 public FSWheelJoint(FSBody bA, FSBody bB, FVector2 anchor, FVector2 axis)
     : base(bA, bB)
 {
     JointType     = JointType.Wheel;
     LocalAnchorA  = bA.GetLocalPoint(anchor);
     LocalAnchorB  = bB.GetLocalPoint(anchor);
     m_localXAxisA = bA.GetLocalVector(axis);
     m_localYAxisA = MathUtils.Cross(1.0f, m_localXAxisA);
 }
示例#2
0
 public FSWheelJoint(FSBody bA, FSBody bB, FVector2 anchor, FVector2 axis)
     : base(bA, bB)
 {
     JointType = JointType.Wheel;
     LocalAnchorA = bA.GetLocalPoint(anchor);
     LocalAnchorB = bB.GetLocalPoint(anchor);
     m_localXAxisA = bA.GetLocalVector(axis);
     m_localYAxisA = MathUtils.Cross(1.0f, m_localXAxisA);
 }