Java Code Examples for org.jbox2d.dynamics.Body#getLocalPointToOut()
The following examples show how to use
org.jbox2d.dynamics.Body#getLocalPointToOut() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WheelJointDef.java From jbox2d with BSD 2-Clause "Simplified" License | 5 votes |
public void initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis) { bodyA = b1; bodyB = b2; b1.getLocalPointToOut(anchor, localAnchorA); b2.getLocalPointToOut(anchor, localAnchorB); bodyA.getLocalVectorToOut(axis, localAxisA); }
Example 2
Source File: FrictionJointDef.java From jbox2d with BSD 2-Clause "Simplified" License | 5 votes |
/** * Initialize the bodies, anchors, axis, and reference angle using the world anchor and world * axis. */ public void initialize(Body bA, Body bB, Vec2 anchor) { bodyA = bA; bodyB = bB; bA.getLocalPointToOut(anchor, localAnchorA); bB.getLocalPointToOut(anchor, localAnchorB); }