Public Member Functions | Static Public Member Functions

ChipmunkGrooveJoint Class Reference

Groove joints hold a pivot point on one body to line along a line segment on another like a pin in a groove. More...

#import <ChipmunkConstraint.h>

Inherits ChipmunkConstraint.

List of all members.

Public Member Functions

(id) - initWithBodyA:bodyB:groove_a:groove_b:anchr2:
 Initialize a groove joint between the two bodies.

Static Public Member Functions

(ChipmunkGrooveJoint *) + grooveJointWithBodyA:bodyB:groove_a:groove_b:anchr2:
 Create an autoreleased groove joint between the two bodies.

Detailed Description

Groove joints hold a pivot point on one body to line along a line segment on another like a pin in a groove.


Member Function Documentation

+ (ChipmunkGrooveJoint *) grooveJointWithBodyA: (ChipmunkBody *)  a
bodyB: (ChipmunkBody *)  b
groove_a: (cpVect groove_a
groove_b: (cpVect groove_b
anchr2: (cpVect anchr2 

Create an autoreleased groove joint between the two bodies.

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.

Parameters:
groove_a The start of the line segment on the first body.
groove_b The end of the line segment on the first body.
anchr2 The anchor point on the second body that is held to the line segment on the first.
- (id) initWithBodyA: (ChipmunkBody *)  a
bodyB: (ChipmunkBody *)  b
groove_a: (cpVect groove_a
groove_b: (cpVect groove_b
anchr2: (cpVect anchr2 

Initialize a groove joint between the two bodies.

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.

Parameters:
groove_a The start of the line segment on the first body.
groove_b The end of the line segment on the first body.
anchr2 The anchor point on the second body that is held to the line segment on the first.

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