class CP::Constraint::DampedRotarySpring
- CP::Constraint::DampedRotarySpring
- CP::Constraint
- Reference
- Object
Overview
Like a damped spring, but works in an angular fashion
Defined in:
chipmunk/constraint.crConstructors
Instance Method Summary
-
#damping : Float64
How soft to make the damping of the spring.
- #damping=(damping : Number)
-
#rest_angle : Float64
The relative angle in radians that the bodies want to have
- #rest_angle=(rest_angle : Number)
-
#spring_torque(relative_angle : Float64) : Number
(can be overridden in a subclass)
-
#stiffness : Float64
The stiffness of the spring in force/distance.
- #stiffness=(stiffness : Number)