public getWorldPoint ( Vector2 &localPoint ) : Vector2 | ||
localPoint | Vector2 | A point on the body measured relative the the body's origin. |
return | Vector2 |
public static RevoluteJoint CreateRevoluteJoint( World world, Body bodyA, Body bodyB, Vector2 anchor ) { var localanchorA = bodyA.getLocalPoint( bodyB.getWorldPoint( anchor ) ); var joint = new RevoluteJoint( bodyA, bodyB, localanchorA, anchor ); world.addJoint( joint ); return joint; }