Trying to make a character skip a distance by pressing a button. Example code:
if Input.is_action_just_pressed("action"):
translate(Vector3(0,0,2))
The translate function is supposed to work in local co-ordinates, but it seems to move the character along the global Z axis.
I'm using Godot 3.0, which has the translateobjectlocal() function as well, but I have the same problem with it.
I tried combining things with Basis, including using get_transform().basis[0], no functional result.
Any ideas?