Method: CP::Object#chipmunk_objects

Defined in:
lib/chipmunk.rb

#chipmunk_objectsObject

Returns the list of primitive Chipmunk objects (bodies, shapes and constraints that this composite object references directly and indirectly.



21
22
23
24
25
26
27
# File 'lib/chipmunk.rb', line 21

def chipmunk_objects
  if @chipmunk_objects
    return @chipmunk_objects
  else
    raise "This CP::Object (#{self.class}) did not call #init_chipmunk_object."
  end
end