Class: CP::RotaryLimitJoint
- Inherits:
-
Object
- Object
- CP::RotaryLimitJoint
- Includes:
- Constraint
- Defined in:
- lib/chipmunk-ffi/constraints/rotary_limit_joint.rb
Constant Summary
Constants included from Constraint
Constraint::DampedRotarySpring, Constraint::DampedSpring, Constraint::GearJoint, Constraint::GrooveJoint, Constraint::PinJoint, Constraint::PivotJoint, Constraint::RatchetJoint, Constraint::RotaryLimitJoint, Constraint::SimpleMotor, Constraint::SlideJoint
Instance Attribute Summary
Attributes included from Constraint
Instance Method Summary collapse
-
#initialize(a_body, b_body, min, max) ⇒ RotaryLimitJoint
constructor
A new instance of RotaryLimitJoint.
Methods included from Constraint
Constructor Details
#initialize(a_body, b_body, min, max) ⇒ RotaryLimitJoint
Returns a new instance of RotaryLimitJoint.
17 18 19 20 21 |
# File 'lib/chipmunk-ffi/constraints/rotary_limit_joint.rb', line 17 def initialize(a_body, b_body, min, max) @body_a, @body_b = a_body, b_body @struct = RotaryLimitJointStruct.new(CP.cpRotaryLimitJointNew( a_body.struct.pointer,b_body.struct.pointer,min,max)) end |