Class: CP::GrooveJoint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a_body, b_body, groove_a, groove_b, anchr2) ⇒ GrooveJoint

Returns a new instance of GrooveJoint.



24
25
26
27
# File 'lib/chipmunk-ffi/constraints/groove_joint.rb', line 24

def initialize(a_body, b_body, groove_a, groove_b, anchr2)
  @struct = GrooveJointStruct.new(CP.cpGrooveJointNew(
    a_body.struct.pointer,b_body.struct.pointer,groove_a.struct,groove_b.struct,anchr2.struct))
end

Instance Attribute Details

#structObject (readonly)

Returns the value of attribute struct.



23
24
25
# File 'lib/chipmunk-ffi/constraints/groove_joint.rb', line 23

def struct
  @struct
end