Like a ChipmunkDampedSpring, but operates in a rotational fashion. More...
#import <ChipmunkConstraint.h>
Inherits ChipmunkConstraint.
Public Member Functions | |
(id) | - initWithBodyA:bodyB:restAngle:stiffness:damping: |
Initialize a damped rotary spring between the given bodies. | |
Static Public Member Functions | |
(ChipmunkDampedRotarySpring *) | + dampedRotarySpringWithBodyA:bodyB:restAngle:stiffness:damping: |
Create an autoreleased damped rotary spring between the given bodies. | |
Properties | |
cpFloat | restAngle |
The angular offset the spring attempts to keep between the two bodies. | |
cpFloat | stiffness |
The young's modulus of the spring. | |
cpFloat | damping |
The amount of viscous damping to apply. |
Like a ChipmunkDampedSpring, but operates in a rotational fashion.
+ (ChipmunkDampedRotarySpring *) dampedRotarySpringWithBodyA: | (ChipmunkBody *) | a | ||
bodyB: | (ChipmunkBody *) | b | ||
restAngle: | (cpFloat) | restAngle | ||
stiffness: | (cpFloat) | stiffness | ||
damping: | (cpFloat) | damping | ||
Create an autoreleased damped rotary spring between the given bodies.
restAngle | The angular offset in radians the spring attempts to keep between the two bodies. | |
stiffness | The young's modulus of the spring. | |
damping | The amount of viscous damping to apply. |
- (id) initWithBodyA: | (ChipmunkBody *) | a | ||
bodyB: | (ChipmunkBody *) | b | ||
restAngle: | (cpFloat) | restAngle | ||
stiffness: | (cpFloat) | stiffness | ||
damping: | (cpFloat) | damping | ||
Initialize a damped rotary spring between the given bodies.
restAngle | The angular offset in radians the spring attempts to keep between the two bodies. | |
stiffness | The young's modulus of the spring. | |
damping | The amount of viscous damping to apply. |