blaze.dynamics.joints.gearJoint
- class
GearJointDef
: blaze.dynamics.joints.joint.JointDef;
- Gear joint definition. This definition requires two existing
revolute or prismatic joints (any combination will work).
The provided joints must attach a dynamic body to a static body.
- this(Joint joint1, Joint joint2, float ratio = cast(float)1);
- Creates a new GearJointData instance.
@param joint1 The first gear of the joint.
@param joint2 The second gear of the joint
@param ratio The gear joint's gear ratio.
- Joint
joint1
;
- The first revolute/prismatic joint attached to the gear joint.
- Joint
joint2
;
- The second revolute/prismatic joint attached to the gear joint.
- float
ratio
;
- The gear
ratio
.
@see b2GearJoint for explanation.
- class
GearJoint
: blaze.dynamics.joints.joint.Joint;
- A gear joint is used to connect two joints together. Either joint
can be a revolute or prismatic joint. You specify a gear ratio
to bind the motions together:
coordinate1 + ratio * coordinate2 = constant
The ratio can be negative or positive. If one joint is a revolute joint
and the other joint is a prismatic joint, then the ratio will have units
of length or units of 1/length.
@warning The revolute and prismatic joints must be attached to
fixed bodies (which must be body1 on those joints).
- float
ratio
();
- Get the gear
ratio
|