Module: CP::Shape

Includes:
Object
Included in:
StaticShape
Defined in:
lib/chipmunk.rb

Instance Method Summary collapse

Instance Method Details

#add_to_space(space) ⇒ Object


65
66
67
# File 'lib/chipmunk.rb', line 65

def add_to_space(space)
  space.add_shape(self)
end

#chipmunk_objectsObject


61
62
63
# File 'lib/chipmunk.rb', line 61

def chipmunk_objects
  [self]
end

#remove_from_space(space) ⇒ Object


69
70
71
# File 'lib/chipmunk.rb', line 69

def remove_from_space(space)
  space.remove_shape(self)
end