Class: CP::BodyStatic

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

Instance Method Summary collapse

Methods inherited from Body

#add_to_space, #remove_from_space

Constructor Details

#initializeBodyStatic

Returns a new instance of BodyStatic.


131
132
133
# File 'lib/chipmunk.rb', line 131

def initialize
  super(Float::INFINITY, Float::INFINITY)
end

Instance Method Details

#chipmunk_objectsObject


135
136
137
138
# File 'lib/chipmunk.rb', line 135

def chipmunk_objects
  # return [] instead of [self] so the static body will not be added.
  []
end