19.10.3
Gear Joint
joint = physics.GearJoint(a, b, phase, ratio)
Parameter |
Type |
Description |
---|---|---|
a |
in physics.Body |
First Body |
b |
in physics.Body |
Second Body |
phase |
in number |
The initial angular offset in radians of the two Bodies |
ratio |
in number |
Ratio of velocities between the two Bodies |
joint |
out physics.GearJoint |
New GearJoint |
Keeps the angular velocity ratio of a pair of Bodies constant. ratio is always measured in absolute terms. phase is the initial angular offset of the two bodies.
Accessors |
Type |
---|---|
setPhase, phase |
number |
setRatio, ratio |
number |
Introduced in platform.apiLevel = '2.0'