Hello, I'm new to Godot Engine and also this Q&A.
I'm studying 3D game development and made a simple FPS controller with the help of YouTube tutorials and Godot documentation, but I'm still having a problem:
I use a Vector3 to determine the direction of the player like that:
direction -= transform.basis.z
direction += transform.basis.z
direction -= transform.basis.x
direction += transform.basis.x
Some tutorials said I needed to use direction.normalized() to prevent the player from moving faster when pressing different movement keys (like forward + left for example) but the problem is that direction.normalized() don't make any difference to my game. I tested it:
print("Before normalized: " , direction)
print("After normalized: " , direction)
Both print() commands give the same direction vector, meaning that direction.normalized() didn't change any value. Is there a better way to prevent the player from moving faster while pressing different movement keys?