19.10
Constraints
All Constraints share common accessors.
Accessors |
Type |
Description |
---|---|---|
bodyA |
physics.Body |
The first Body that the Constraint acts on |
bodyB |
physics.Body |
The second Body that the Constaint acts on |
setBiasCoef, |
number |
The fraction of error corrected
each step of the simulation. Defaults to 0.1. |
setData, |
Lua object |
A programmer-defined object |
impulse |
number |
Calculated
impulse applied by the Constraint in the last simulation step. |
setMaxBias, |
number |
Maximum speed the Constraint can apply error correction. |
setMaxForce, |
number |
Magnitude of maximum force the Constraint can use
to act on the two Bodies. |
Related Topics