Public Member Functions | Static Public Member Functions | Properties

ChipmunkRatchetJoint Class Reference

Ratchet joints create rotary ratches similar to a socket wrench. More...

#import <ChipmunkConstraint.h>

Inherits ChipmunkConstraint.

List of all members.

Public Member Functions

(id) - initWithBodyA:bodyB:phase:ratchet:
 Initialize a ratchet joint between the given bodies.

Static Public Member Functions

(ChipmunkRatchetJoint *) + ratchetJointWithBodyA:bodyB:phase:ratchet:
 Create an autoreleased ratchet joint between the given bodies.

Properties

cpFloat angle
 The current ratchet position in radians.
cpFloat phase
 The angular offset of the ratchet positions in radians.
cpFloat ratchet
 The angle in radians of each ratchet position. Negative values cause the ratchet to operate in the opposite direction.

Detailed Description

Ratchet joints create rotary ratches similar to a socket wrench.


Member Function Documentation

- (id) initWithBodyA: (ChipmunkBody *)  a
bodyB: (ChipmunkBody *)  b
phase: (cpFloat)  phase
ratchet: (cpFloat)  ratchet 

Initialize a ratchet joint between the given bodies.

Parameters:
phase The angular offset of the ratchet positions in radians.
ratchet The angle in radians of each ratchet position. Negative values cause the ratchet to operate in the opposite direction.
+ (ChipmunkRatchetJoint *) ratchetJointWithBodyA: (ChipmunkBody *)  a
bodyB: (ChipmunkBody *)  b
phase: (cpFloat)  phase
ratchet: (cpFloat)  ratchet 

Create an autoreleased ratchet joint between the given bodies.

Parameters:
phase The angular offset of the ratchet positions in radians.
ratchet The angle in radians of each ratchet position. Negative values cause the ratchet to operate in the opposite direction.

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