,How to rotate an object and keep its rotation onto the world when its rotated?
Hi everyone, I'm creating this spaceship game and I'm trying to get my ship to rotate left or right when pressing a key and stick to its direction and move forward. I got it to move up and down and strafe left and right but I want to rotate the ship so that when I rotate it to the left, for example, that the ship should move forward in that direction. Here is what I have so far. Sorry if my variable names are long; this is how I process in learning how to code in C#. See attached for code
Your answer
Follow this Question
Related Questions
Controller Rotation returns to Zero when there is no movement. 0 Answers
Need Help With My Script And Animator. 0 Answers
The code does not work in unity 0 Answers
How do I get a pointer to this script from a trigger 1 Answer
Why can I not pick up my moving/wandering objects yet I can pick up those that stay in one place? 0 Answers