Hey script gurus. A (probably) simple scripting question…
Here’s the scenario: The scene has a camera that sits in a fixed position facing the level. Also in the scene is a CharacterController. The controller moves in relation to the camera’s position, so ‘up’ is away from the camera, ‘down’ is towards the camera, etc. Now, what I’m trying to figure out is how to make the controller rotate around the Y axis to face the direction of movement.
Although, that solution only partially solves my problem. I’m trying to find a way to make it truly analogous, so a plethora of ‘face’ directions would be possible. :?
I’d figure there has to be some formula utilizing the Input.GetAxis() inputs in some way.