body->SetTransform(b2Vec2(positionX, positionY), angle, updateContacts);\r
*/\r
\r
- /** Get the body transform for the body's origin. */\r
private final Transform transform = new Transform();\r
+ \r
+ /** Get the body transform for the body's origin. */\r
public Transform getTransform () {\r
jniGetTransform(addr, transform.vals);\r
return transform;\r
return body->GetAngle();\r
*/\r
\r
- /** Get the world position of the center of mass. */\r
private final Vector2 worldCenter = new Vector2();\r
-\r
+ \r
+ /** Get the world position of the center of mass. */\r
public Vector2 getWorldCenter () {\r
jniGetWorldCenter(addr, tmp);\r
worldCenter.x = tmp[0];\r
worldCenter[1] = w.y;\r
*/\r
\r
- /** Get the local position of the center of mass. */\r
private final Vector2 localCenter = new Vector2();\r
-\r
+ \r
+ /** Get the local position of the center of mass. */\r
public Vector2 getLocalCenter () {\r
jniGetLocalCenter(addr, tmp);\r
localCenter.x = tmp[0];\r
body->SetLinearVelocity(b2Vec2(x, y));\r
*/\r
\r
- /** Get the linear velocity of the center of mass. */\r
private final Vector2 linearVelocity = new Vector2();\r
-\r
+ \r
+ /** Get the linear velocity of the center of mass. */\r
public Vector2 getLinearVelocity () {\r
jniGetLinearVelocity(addr, tmp);\r
linearVelocity.x = tmp[0];\r