class CP::Constraint::RotaryLimitJoint
- CP::Constraint::RotaryLimitJoint
- CP::Constraint
- Reference
- Object
Overview
Constrains the relative rotations of two bodies.
Defined in:
chipmunk/constraint.crConstructors
-
.new(a : Body, b : Body, min : Number, max : Number)
min and max are the angular limits in radians.
Instance Method Summary
-
#max : Float64
The maximum distance the joint will maintain between the two anchors.
- #max=(max : Number)
-
#min : Float64
The minimum distance the joint will maintain between the two anchors.
- #min=(min : Number)
Instance methods inherited from class CP::Constraint
bodies : Tuple(Body, Body)
bodies,
body_a : Body
body_a,
body_b : Body
body_b,
collide_bodies=(collide_bodies : Bool)
collide_bodies=,
collide_bodies? : Bool
collide_bodies?,
error_bias : Float64
error_bias,
error_bias=(error_bias : Number)
error_bias=,
impulse : Float64
impulse,
max_bias : Float64
max_bias,
max_bias=(max_bias : Number)
max_bias=,
max_force : Float64
max_force,
max_force=(max_force : Number)
max_force=,
post_solve(space : Space)
post_solve,
pre_solve(space : Space)
pre_solve,
space : Space | Nil
space
Constructor Detail
min and max are the angular limits in radians. It is implemented so that it's possible to for the range to be greater than a full revolution.