Wheel Joint Def
constructor(bodyA: Body, bodyB: Body, localAnchorA: Vec2 = Vec2.Zero, localAnchorB: Vec2 = Vec2.Zero, localAxisA: Vec2 = Vec2(0f, 1f), enableSpring: Boolean = true, hertz: Float = 1.0f, dampingRatio: Float = 0.7f, enableLimit: Boolean = false, lowerTranslation: Float = 0.0f, upperTranslation: Float = 0.0f, enableMotor: Boolean = false, maxMotorTorque: Float = 0.0f, motorSpeed: Float = 0.0f, collideConnected: Boolean = false)
Parameters
body A
The first attached body (usually the car chassis)
body B
The second attached body (usually the wheel)
local Anchor A
The local anchor point relative to bodyA's origin
local Anchor B
The local anchor point relative to bodyB's origin
local Axis A
The local translation unit axis in bodyA (suspension direction)