Updated level and jetpack.

pull/35/head
unfa 2021-02-27 00:00:47 +01:00
parent 35130fe5b8
commit bc8c380080
3 changed files with 1 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -117,6 +117,7 @@ remote func walk(direction: Vector2):
debug.text += "\nvelocity: " + String(velocity)
debug.text += "\nis_on_floor(): " + String(is_on_floor())
debug.text += "\nhealth: " + String(health)
debug.text += "\njetpack: " + String(jetpack_fuel)
velocity.x = lerp(velocity.x, walkVelocity.rotated(- self.rotation.y).y, interpolation)
velocity.z = lerp(velocity.z, - walkVelocity.rotated(- self.rotation.y).x, interpolation)