Class: CP::Body

Inherits:
Object
  • Object
show all
Includes:
Object
Defined in:
lib/chipmunk.rb

Direct Known Subclasses

BodyStatic

Instance Method Summary collapse

Instance Method Details

#add_to_space(space) ⇒ Object


48
49
50
# File 'lib/chipmunk.rb', line 48

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

#chipmunk_objectsObject


44
45
46
# File 'lib/chipmunk.rb', line 44

def chipmunk_objects
  [self]
end

#remove_from_space(space) ⇒ Object


52
53
54
# File 'lib/chipmunk.rb', line 52

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