/// <summary> /// This requires a world target point, /// tuning parameters, and the time step. /// </summary> /// <param name="body">The body.</param> /// <param name="worldAnchor">The target.</param> public FixedMouseJoint(Body body, Vector2 worldAnchor) : base(body) { JointType = JointType.FixedMouse; Frequency = 5.0f; DampingRatio = 0.7f; Debug.Assert(worldAnchor.IsValid()); Transform xf1; BodyA.GetTransform(out xf1); _worldAnchor = worldAnchor; LocalAnchorA = BodyA.GetLocalPoint(worldAnchor); }