Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Keep center of camera view to front of user

Discussion in 'Editor & General Support' started by TheOneRaven, Nov 28, 2019.

  1. TheOneRaven

    TheOneRaven

    Joined:
    Oct 28, 2016
    Posts:
    15
    I am not sure how to explain this , but here I go.

    I have a car that moves automatically using a NavMesh, the player sees what happens through a camera attached to the front seat of this car. The player can move the mouse to look around, however, when the car turns, the center of the camera does not shift with it, therefore the player cannot properly look around when the car has turned.

    How can this be solved? If I need to explain anything else please let me know :)
    Thanks!
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Why not add the cars Y rotation to the cockpit cameras rotation?
     
  3. TheOneRaven

    TheOneRaven

    Joined:
    Oct 28, 2016
    Posts:
    15
    Thanks that's a good idea, I will try it!