Class: CP::SlideJoint
- Inherits:
-
Object
- Object
- CP::SlideJoint
- Defined in:
- lib/chipmunk-ffi/constraints/slide_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, min, max) ⇒ SlideJoint
constructor
A new instance of SlideJoint.
Constructor Details
#initialize(a_body, b_body, anchr_one, anchr_two, min, max) ⇒ SlideJoint
22 23 24 25 |
# File 'lib/chipmunk-ffi/constraints/slide_joint.rb', line 22 def initialize(a_body, b_body, anchr_one, anchr_two, min, max) @struct = SlideJointStruct.new(CP.cpSlideJointNew( a_body.struct.pointer,b_body.struct.pointer,anchr_one.struct,anchr_two.struct,min,max)) end |
Instance Attribute Details
#struct ⇒ Object (readonly)
Returns the value of attribute struct.
21 22 23 |
# File 'lib/chipmunk-ffi/constraints/slide_joint.rb', line 21 def struct @struct end |