Class: CP::SlideJoint

Inherits:
Object
  • Object
show all
Defined in:
lib/chipmunk-ffi/constraints/slide_joint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#structObject (readonly)

Returns the value of attribute struct.



21
22
23
# File 'lib/chipmunk-ffi/constraints/slide_joint.rb', line 21

def struct
  @struct
end