Class: CP::GrooveJoint
- Inherits:
-
Object
- Object
- CP::GrooveJoint
- Includes:
- Constraint
- Defined in:
- lib/chipmunk-ffi/constraints/groove_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, groove_a, groove_b, anchr2) ⇒ GrooveJoint
constructor
A new instance of GrooveJoint.
Methods included from Constraint
Constructor Details
#initialize(a_body, b_body, groove_a, groove_b, anchr2) ⇒ GrooveJoint
Returns a new instance of GrooveJoint.
25 26 27 28 29 |
# File 'lib/chipmunk-ffi/constraints/groove_joint.rb', line 25 def initialize(a_body, b_body, groove_a, groove_b, anchr2) @body_a, @body_b = a_body, b_body @struct = GrooveJointStruct.new(CP.cpGrooveJointNew( a_body.struct.pointer,b_body.struct.pointer,groove_a.struct,groove_b.struct,anchr2.struct)) end |