Guest User

Untitled

a guest
Apr 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public static WheelJoint makeWheelJoint(World world, Vector2 localAnchorBodyA, Body bodyA, Body bodyB) {
  2. WheelJointDef jointDef = new WheelJointDef();
  3. jointDef.bodyA = bodyA;
  4. jointDef.bodyB = bodyB;
  5. jointDef.localAnchorA.set(localAnchorBodyA);
  6. jointDef.frequencyHz = 10;
  7. //jointDef.dampingRatio = 1;
  8. jointDef.localAxisA.set(new Vector2(-0, 1));
  9. //jointDef.localAxisA.set(Vector2.Y);
  10. jointDef.maxMotorTorque = 30;
  11. return (WheelJoint) world.createJoint(jointDef);
  12. }
Add Comment
Please, Sign In to add comment