Class: CP::RatchetJoint
- Inherits:
-
Object
- Object
- CP::RatchetJoint
- Defined in:
- lib/chipmunk-ffi/constraints/ratchet_joint.rb
Instance Attribute Summary collapse
-
#struct ⇒ Object
readonly
Returns the value of attribute struct.
Instance Method Summary collapse
-
#initialize(a_body, b_body, phase, ratchet) ⇒ RatchetJoint
constructor
A new instance of RatchetJoint.
Constructor Details
#initialize(a_body, b_body, phase, ratchet) ⇒ RatchetJoint
Returns a new instance of RatchetJoint.
17 18 19 20 |
# File 'lib/chipmunk-ffi/constraints/ratchet_joint.rb', line 17 def initialize(a_body, b_body, phase, ratchet) @struct = RatchetJointStruct.new(CP.cpRatchetJointNew( a_body.struct.pointer,b_body.struct.pointer,phase,ratchet)) end |
Instance Attribute Details
#struct ⇒ Object (readonly)
Returns the value of attribute struct.
16 17 18 |
# File 'lib/chipmunk-ffi/constraints/ratchet_joint.rb', line 16 def struct @struct end |