Functions for the parallel joint. More...

Data Structures | |
| struct | b3ParallelJointDef |
| Parallel joint definition. More... | |
Functions | |
| b3JointId | b3CreateParallelJoint (b3WorldId worldId, const b3ParallelJointDef *def) |
| Create a parallel joint. | |
| void | b3ParallelJoint_SetSpringHertz (b3JointId jointId, float hertz) |
| Set the spring stiffness in Hertz. | |
| void | b3ParallelJoint_SetSpringDampingRatio (b3JointId jointId, float dampingRatio) |
| Set the spring damping ratio, non-dimensional. | |
| float | b3ParallelJoint_GetSpringHertz (b3JointId jointId) |
| Get the spring Hertz. | |
| float | b3ParallelJoint_GetSpringDampingRatio (b3JointId jointId) |
| Get the spring damping ratio. | |
| void | b3ParallelJoint_SetMaxTorque (b3JointId jointId, float force) |
| Set the maximum spring torque, usually in newton-meters. | |
| float | b3ParallelJoint_GetMaxTorque (b3JointId jointId) |
| Get the maximum spring torque, usually in newton-meters. | |
| b3ParallelJointDef | b3DefaultParallelJointDef (void) |
| Use this to initialize your joint definition. | |
Functions for the parallel joint.
| struct b3ParallelJointDef |
Parallel joint definition.
Constrains the angle between axis z in body A and axis z in body B using a spring. Useful to keep a body upright.

| Data Fields | ||
|---|---|---|
| b3JointDef | base | Base joint definition. |
| float | dampingRatio | The spring damping ratio, non-dimensional. |
| float | hertz | The spring stiffness Hertz, cycles per second. |
| float | maxTorque | The maximum spring torque, typically in newton-meters. |
| b3JointId b3CreateParallelJoint | ( | b3WorldId | worldId, |
| const b3ParallelJointDef * | def ) |
Create a parallel joint.