|
|
|
@ -68,6 +68,7 @@ class Window < Gosu::Window |
|
|
|
|
# end |
|
|
|
|
|
|
|
|
|
def update |
|
|
|
|
if( !@freeze ) then |
|
|
|
|
@physobjs.each do |obj| |
|
|
|
|
obj.physics |
|
|
|
|
end |
|
|
|
@ -80,6 +81,7 @@ class Window < Gosu::Window |
|
|
|
|
planet.orbit(planets) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
private def generate_debug_string(obj) |
|
|
|
|
return "\n#{obj.name}\nVel: #{obj.vel.round(4)} (#{obj.vel.magnitude.round(1)})\nAccel: #{obj.accel.round(4)} (#{obj.accel.magnitude.round(4)})\nPos: #{obj.pos.round(4)}\n" |
|
|
|
|