MouseJointDef

constructor(bodyA: Body, bodyB: Body, target: Vec2, maxForce: Float = 1.0f, hertz: Float = 4.0f, dampingRatio: Float = 1.0f, collideConnected: Boolean = false)

Parameters

bodyA

The first attached body (usually a static/ground body)

bodyB

The second attached body (the one being dragged)

target

The initial world target point (where the mouse is)