b2MouseJoint(native)
A mouse joint is used to make a point on a body track a specified world point.
Properties
-
dampingRatio : Float
The damping ratio (dimensionless).
-
frequency : Float
The frequency in Hertz.
-
maxForce : Float
The maximum constraint force that can be exerted to move the candidate body. Usually you will express as some multiple of the weight (multiplier * mass * gravity).
Methods
-
getTarget() : Multivalue
Use this to get the target point.
-
setTarget(x, y) : b2MouseJoint
Use this to update the target point.