Simple motors make two objects spin relative to each other. More...
#import <ChipmunkConstraint.h>
Inherits ChipmunkConstraint.
Public Member Functions | |
| (id) | - initWithBodyA:bodyB:rate: |
| Initialize a simple motor between the given bodies and relative rotation rate in radians per second. | |
Static Public Member Functions | |
| (ChipmunkSimpleMotor *) | + simpleMotorWithBodyA:bodyB:rate: |
| Create an autoreleased simple motor between the given bodies and relative rotation rate in radians per second. | |
Properties | |
| cpFloat | rate |
| The relative rotation speed of the two bodies in radians per second. | |
Simple motors make two objects spin relative to each other.
They are most often used with the ChipmunkConstraint.maxForce property set to a finite value.
1.7.1