Box3D 0.1.0
A 3D physics engine for games
Loading...
Searching...
No Matches
Parallel Joint

Functions for the parallel joint. More...

Collaboration diagram for Parallel Joint:

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.

Detailed Description

Functions for the parallel joint.


Data Structure Documentation

◆ b3ParallelJointDef

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.

Collaboration diagram for b3ParallelJointDef:
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.

Function Documentation

◆ b3CreateParallelJoint()

b3JointId b3CreateParallelJoint ( b3WorldId worldId,
const b3ParallelJointDef * def )

Create a parallel joint.

See also
b3ParallelJointDef for details