love.physics.newMotorJoint
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Creates a joint between two bodies which controls the relative motion between them.
A typical usage is to control the movement of a dynamic body with respect to the ground.
Function
Synopsis
joint = love.physics.newMotorJoint( body1, body2, correctionFactor )
Arguments
Body body1
- The first body to attach to the joint.
Body body2
- The second body to attach to the joint.
number correctionFactor (0.3)
- The joint's initial position correction factor, in the range of [0, 1].
Returns
MotorJoint joint
- The new MotorJoint.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info