|
Chipmunk2D Pro API Reference
7.0.2
|
Typedefs | |
| typedef struct cpSimpleMotor | cpSimpleMotor |
| Opaque struct type for damped rotary springs. | |
Functions | |
| CP_EXPORT cpBool | cpConstraintIsSimpleMotor (const cpConstraint *constraint) |
| Check if a constraint is a damped rotary springs. | |
| CP_EXPORT cpSimpleMotor * | cpSimpleMotorAlloc (void) |
| Allocate a simple motor. | |
| CP_EXPORT cpSimpleMotor * | cpSimpleMotorInit (cpSimpleMotor *joint, cpBody *a, cpBody *b, cpFloat rate) |
| initialize a simple motor. | |
| CP_EXPORT cpConstraint * | cpSimpleMotorNew (cpBody *a, cpBody *b, cpFloat rate) |
| Allocate and initialize a simple motor. | |
| CP_EXPORT cpFloat | cpSimpleMotorGetRate (const cpConstraint *constraint) |
| Get the rate of the motor. | |
| CP_EXPORT void | cpSimpleMotorSetRate (cpConstraint *constraint, cpFloat rate) |
| Set the rate of the motor. | |
1.8.3.1