public FixedPrismaticJoint ( Body body, System.Vector2 anchor, System.Vector2 axis ) : System | ||
body | Body | The body. |
anchor | System.Vector2 | The anchor. |
axis | System.Vector2 | The axis. |
Résultat | System |
public FixedPrismaticJoint(Body body, Vector2 anchor, Vector2 axis)
: base(body)
{
JointType = JointType.FixedPrismatic;
BodyB = BodyA;
LocalAnchorA = anchor;
LocalAnchorB = BodyB.GetLocalPoint(anchor);
_localXAxis1 = axis;
_localYAxis1 = MathUtils.Cross(1.0f, _localXAxis1);
_refAngle = BodyB.Rotation;
_limitState = LimitState.Inactive;
}