Answer the question
In order to leave comments, you need to log in
How to move an object based on an angle?
Hello, problem: a game in the style of SpaceShooter, there is a ship with constant movement (straight), but by implementing the rotation of the ship (by pressing the keys), I realized that it does not take into account the angle of its inclination with the above constant movement. How to solve it?
More specifically, the question is how to calculate the vector directed directly in front of the character, taking into account the rotation (if anything, everything is in 3d):
PS knows) because the movement happens all the time, not just when a key is pressed
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question