Public Member Functions | Static Public Member Functions | Properties

ChipmunkRotaryLimitJoint Class Reference

Constrains the angle between two bodies. More...

#import <ChipmunkConstraint.h>

Inherits ChipmunkConstraint.

List of all members.

Public Member Functions

(id) - initWithBodyA:bodyB:min:max:
 Create an autoreleased rotary limit joint between the two bodies and angular range in radians.

Static Public Member Functions

(ChipmunkRotaryLimitJoint *) + rotaryLimitJointWithBodyA:bodyB:min:max:
 Create an autoreleased rotary limit joint between the two bodies and angular range in radians.

Properties

cpFloat min
 The minimum angular delta of the joint in radians.
cpFloat max
 The maximum angular delta of the joint in radians.

Detailed Description

Constrains the angle between two bodies.

This joint is often used in conjuction with a separate ChipmunkPivotJoint in order to limit the rotation around the pivot.


Member Function Documentation

- (id) initWithBodyA: (ChipmunkBody *)  a
bodyB: (ChipmunkBody *)  b
min: (cpFloat)  min
max: (cpFloat)  max 

Create an autoreleased rotary limit joint between the two bodies and angular range in radians.

Make sure you have the bodies in the right place as the joint will snap into shape as soon as you start simulating the space.

+ (ChipmunkRotaryLimitJoint *) rotaryLimitJointWithBodyA: (ChipmunkBody *)  a
bodyB: (ChipmunkBody *)  b
min: (cpFloat)  min
max: (cpFloat)  max 

Create an autoreleased rotary limit joint between the two bodies and angular range in radians.

Make sure you have the bodies in the right place as the joint will snap into shape as soon as you start simulating the space.


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