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. Dismiss Notice

Camera moves without the player

Discussion in 'Scripting' started by poisonousprojectiles, Feb 20, 2021.

  1. poisonousprojectiles

    poisonousprojectiles

    Joined:
    Feb 20, 2021
    Posts:
    2
    I am creating a game all about movement. But I have run into a problem where if I move my cam sideways it doesn't move with the player. It moves in a circle and acts like a free cam I am just now getting into making games and am looking for help.
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    1,315
    We need far more context than a short text description to diagnose your problem. Recordings, screenshots, and/or relevant code snippets are all appreciated.
     
    SparrowGS likes this.
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,762
    Camera stuff is quite tricky. I recommend looking into Cinemachine to do the heavy lifting. There's plenty of tutorials on cinemachine out there.
     
  4. poisonousprojectiles

    poisonousprojectiles

    Joined:
    Feb 20, 2021
    Posts:
    2
    upload_2021-2-21_20-2-51.png