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

Bug If you go with the camera a distance of 2000 from the center and put a weapon as a first person pers

Discussion in 'Editor & General Support' started by hizabor20, Apr 11, 2023.

  1. hizabor20

    hizabor20

    Joined:
    Dec 1, 2022
    Posts:
    2
    If you go with the camera a distance of 2000 from the center and put a weapon as a first person perspective, when it rotates, vibrations will appear in the weapon and the accuracy of the camera will weaken.

    link of video:
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
    Yes, this is called floating point precision, or lack of precision the further you get from zero. This phenomenon has been well understood for decades.

    It's just a bug, it's just an inherent part of floating point numbers.
     
  3. hizabor20

    hizabor20

    Joined:
    Dec 1, 2022
    Posts:
    2
    Ok what is the solution

    upload_2023-4-11_3-7-39.png
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
    Not so much a 'solution' as there are various ways around the problem. A common one is a concept called a 'floating origin'. Do some searching/reading. Again, this is a decades old problem with countless solutions already out there.
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,735
    Don't put your camera at a distance of 2000
     
    Kurt-Dekker likes this.