Search Unity

Move Brain to help with floating point origin offset solutions

Discussion in 'Cinemachine' started by eV-Interactive, Jun 29, 2020.

  1. eV-Interactive

    eV-Interactive

    Joined:
    Oct 25, 2016
    Posts:
    41
    I have a large world game and implement a "floating point origin offset fix" solution that re-centers my world to keep the math error managed. Of course, this throws off a lot of Cinemachine's damping, morphing, following, etc.

    Is there a best practice for telling Cinemachine "oh, by the way, I just moved everything +5000 units in X?"
     
    MiraiTunga likes this.
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    OnTargetObjectWarped may be what you are looking for.
     
    Gregoryl likes this.