Public Member Functions | Static Public Member Functions | Properties

ChipmunkSimpleMotor Class Reference

Simple motors make two objects spin relative to each other. More...

#import <ChipmunkConstraint.h>

Inherits ChipmunkConstraint.

List of all members.

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.

Detailed Description

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.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Properties