dt with dt for arrow key look

This commit is contained in:
2018-07-01 19:48:00 -05:00
parent 4c603c3a3d
commit f21032935b
2 changed files with 4 additions and 2 deletions

View File

@@ -118,10 +118,10 @@ class IMICFPS
end
if button_down?(Gosu::KbLeft)
@y_rotation+=relative_speed*100
@y_rotation+=(relative_speed*1000)*delta_time
end
if button_down?(Gosu::KbRight)
@y_rotation-=relative_speed*100
@y_rotation-=(relative_speed*1000)*delta_time
end
if @_time_in_air

View File

@@ -18,6 +18,8 @@ class IMICFPS
@nearest_vertex_lookup[x_slot][y_slot] = [] unless @nearest_vertex_lookup[x_slot][y_slot]
@nearest_vertex_lookup[x_slot][y_slot] << vert
end
p model.faces.first
end
def height_at(vertex)