Class: CP::GearJoint
- Inherits:
-
Object
- Object
- CP::GearJoint
- Defined in:
- lib/chipmunk-ffi/constraints/gear_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, ratio) ⇒ GearJoint
constructor
A new instance of GearJoint.
Constructor Details
#initialize(a_body, b_body, phase, ratio) ⇒ GearJoint
Returns a new instance of GearJoint.
17 18 19 20 |
# File 'lib/chipmunk-ffi/constraints/gear_joint.rb', line 17 def initialize(a_body, b_body, phase, ratio) @struct = GearJointStruct.new(CP.cpGearJointNew( a_body.struct.pointer,b_body.struct.pointer,phase, ratio)) end |
Instance Attribute Details
#struct ⇒ Object (readonly)
Returns the value of attribute struct.
16 17 18 |
# File 'lib/chipmunk-ffi/constraints/gear_joint.rb', line 16 def struct @struct end |