Class: CP::PinJoint
- Inherits:
-
Object
- Object
- CP::PinJoint
- Defined in:
- lib/chipmunk-ffi/constraints/pin_joint.rb
Instance Attribute Summary collapse
-
#struct ⇒ Object
readonly
Returns the value of attribute struct.
Instance Method Summary collapse
-
#initialize(a_body, b_body, anchr_one, anchr_two) ⇒ PinJoint
constructor
A new instance of PinJoint.
Constructor Details
#initialize(a_body, b_body, anchr_one, anchr_two) ⇒ PinJoint
Returns a new instance of PinJoint.
20 21 22 23 |
# File 'lib/chipmunk-ffi/constraints/pin_joint.rb', line 20 def initialize(a_body, b_body, anchr_one, anchr_two) @struct = PinJointStruct.new(CP.cpPinJointNew( a_body.struct.pointer,b_body.struct.pointer,anchr_one.struct,anchr_two.struct)) end |
Instance Attribute Details
#struct ⇒ Object (readonly)
Returns the value of attribute struct.
19 20 21 |
# File 'lib/chipmunk-ffi/constraints/pin_joint.rb', line 19 def struct @struct end |