3rd person controller with static camera
I'm trying to do a 3rd person controller with static cameras (like ps1 final fantasy or ps1 resident evil)
The problem that I have is the relation between the cameras relative positions and the character position. For instance: when I press down key, depending where is the camera the player will move to whatever direction, and I want to move it down following the camera facing.
Anybody did that before?
Thanks JJ
Answer by Cynikal · Oct 24, 2016 at 05:23 AM
Take a look at: http://answers.unity3d.com/questions/8444/moving-player-relative-to-camera.html
As far as the cameras go, you could use something along the lines of:
if (Vector3.Distance(camera position, player position) > 10f)
{
Camera.position = Somwhere along the path;
}
Obviously the code I listed will not work if you copy/paste.. So, just experiment around.
Your answer
Follow this Question
Related Questions
How to fix cameras running all at once ? 0 Answers
MoveTowards is curving for no reason 0 Answers
2D Top Down Movement Control Help. 1 Answer
Why won't my character jump smoothly? 0 Answers
How to crouch a FPS Controller? 2 Answers