Topic was automatically imported from the old Question2Answer platform.
Asked By
DoNotAskMyName
My question is quite straightforward i guess, how do i get the angle a rigidbody is looking at and translate it into velocity? and/or apply velocity to its sides like a player moving mechanism? i can find almost nothing online, and all i found were about 2d
Like, apply a force in the direction your body is facing? That can be easily done. In Godot, we can use transform.basis to alter a forward force to point in the direction we are facing. Here is what the code would look like: