Mouse Joint Def
data class MouseJointDef(val bodyA: Body, val bodyB: Body, val target: Vec2, val maxForce: Float = 1.0f, val hertz: Float = 4.0f, val dampingRatio: Float = 1.0f, val collideConnected: Boolean = false)
Mouse joint definition.
A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a max force and uses a rotation heuristic to prevent excessive rotation. This is typically used for mouse interaction.
Parameters
body A
The first attached body (usually a static/ground body)
body B
The second attached body (the one being dragged)
target
The initial world target point (where the mouse is)