Class: CP::GrooveJoint
- Inherits:
-
Object
- Object
- CP::GrooveJoint
- Defined in:
- lib/chipmunk-ffi/constraints/groove_joint.rb
Instance Attribute Summary collapse
-
#struct ⇒ Object
readonly
Returns the value of attribute struct.
Instance Method Summary collapse
-
#initialize(a_body, b_body, groove_a, groove_b, anchr2) ⇒ GrooveJoint
constructor
A new instance of GrooveJoint.
Constructor Details
#initialize(a_body, b_body, groove_a, groove_b, anchr2) ⇒ GrooveJoint
Returns a new instance of GrooveJoint.
24 25 26 27 |
# File 'lib/chipmunk-ffi/constraints/groove_joint.rb', line 24 def initialize(a_body, b_body, groove_a, groove_b, anchr2) @struct = GrooveJointStruct.new(CP.cpGrooveJointNew( a_body.struct.pointer,b_body.struct.pointer,groove_a.struct,groove_b.struct,anchr2.struct)) end |
Instance Attribute Details
#struct ⇒ Object (readonly)
Returns the value of attribute struct.
23 24 25 |
# File 'lib/chipmunk-ffi/constraints/groove_joint.rb', line 23 def struct @struct end |