using dtime to check commend delay

master
Alexsandro Percy 2020-05-04 19:33:00 -03:00
parent 5256c4f997
commit 9f11fe45a6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ wanted_vert_speed = 10
vector_up = vector.new(0, 1, 0)
vector_forward = vector.new(0, 0, 1)
motorboat_last_time_command = minetest.get_us_time()
motorboat_last_time_command = 0
function vector_length_sq(v)
return v.x * v.x + v.y * v.y + v.z * v.z