Module: CP::StaticShape

Includes:
Shape
Included in:
Circle, Poly, Segment
Defined in:
lib/chipmunk.rb

Defined Under Namespace

Classes: Circle, Poly, Segment

Instance Method Summary collapse

Methods included from Shape

#chipmunk_objects

Methods included from Object

#chipmunk_objects

Instance Method Details

#add_to_space(space) ⇒ Object


163
164
165
# File 'lib/chipmunk.rb', line 163

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

#remove_from_space(space) ⇒ Object


167
168
169
# File 'lib/chipmunk.rb', line 167

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