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.
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. |
Groove joints hold a pivot point on one body to line along a line segment on another like a pin in a groove.
+ (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.
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.
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. |