Public Member Functions | Static Public Member Functions | Properties

ChipmunkDampedRotarySpring Class Reference

Like a ChipmunkDampedSpring, but operates in a rotational fashion. More...

#import <ChipmunkConstraint.h>

Inherits ChipmunkConstraint.

List of all members.

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.

Detailed Description

Like a ChipmunkDampedSpring, but operates in a rotational fashion.


Member Function Documentation

+ (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.

Parameters:
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.

Parameters:
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.

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