Chipmunk2D Pro API Reference  7.0.0
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Typedefs | Functions
cpSimpleMotor

Typedefs

typedef struct cpSimpleMotor cpSimpleMotor
 Opaque struct type for damped rotary springs.
 

Functions

cpBool cpConstraintIsSimpleMotor (const cpConstraint *constraint)
 Check if a constraint is a damped rotary springs.
 
cpSimpleMotorcpSimpleMotorAlloc (void)
 Allocate a simple motor.
 
cpSimpleMotorcpSimpleMotorInit (cpSimpleMotor *joint, cpBody *a, cpBody *b, cpFloat rate)
 initialize a simple motor.
 
cpConstraintcpSimpleMotorNew (cpBody *a, cpBody *b, cpFloat rate)
 Allocate and initialize a simple motor.
 
cpFloat cpSimpleMotorGetRate (const cpConstraint *constraint)
 Get the rate of the motor.
 
void cpSimpleMotorSetRate (cpConstraint *constraint, cpFloat rate)
 Set the rate of the motor.
 

Detailed Description