@ -68,16 +68,18 @@ class Window < Gosu::Window
# end
def update
@physobjs.each do |obj|
obj.physics
end
@planets.each do |planet|
orbiters = []
orbiters += @physobjs
orbiters += @planets
orbiters.delete(planet)
planet.orbit(planets)
if( !@freeze ) then