I’m trying to make a really basic platformer. So far, I can make the player character move just fine using RigidBody and ApplyImpulse, and I can also make camera orbit around the player. However, I’m struggling with making the character’s movement follow the angle of the camera. I want to move in the direction of the camera by pressing forward (W), move in a direction 90° to the right of wherever the camera’s pointing when I press right (D), move directly towards the camera by pressing back (S) and so on.
For reference, here’s a pastebin with all the code I have so far.
Sorry if this is too obvious of a thing to ask about - as you may be able to tell from my code, I’m an absolute beginner