Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static WheelJoint makeWheelJoint(World world, Vector2 localAnchorBodyA, Body bodyA, Body bodyB) {
- WheelJointDef jointDef = new WheelJointDef();
- jointDef.bodyA = bodyA;
- jointDef.bodyB = bodyB;
- jointDef.localAnchorA.set(localAnchorBodyA);
- jointDef.frequencyHz = 10;
- //jointDef.dampingRatio = 1;
- jointDef.localAxisA.set(new Vector2(-0, 1));
- //jointDef.localAxisA.set(Vector2.Y);
- jointDef.maxMotorTorque = 30;
- return (WheelJoint) world.createJoint(jointDef);
- }
Add Comment
Please, Sign In to add comment