MouseJoint

A joint that pulls a body toward a world-space target point using a spring. Access via the 'physics' submodule.

Experimental API:

The physics submodule is a VERY experimental and new API that is highly susceptible to breaking changes in the future.

Inherits from Joint.

Properties


NameDescriptionType
targetThe target point in world coordinates.Vec2
spring_hzThe spring frequency in Hertz.float
spring_damping_ratioThe spring damping ratio.float
max_forceThe maximum constraint force.float