Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Mechanim Turn and Forward Calculations

Discussion in 'Scripting' started by Eiseno, Dec 28, 2018.

  1. Eiseno


    Nov 1, 2015
    I am working on network fps game. I sync network position and body rotation euler angles Y on network. I use unity ethan animation samples for 3rd person network player. But i dont know how to sync rotation and position with that animation system. I mean how to calculate Turn and Forward paramater from my network data.

    My Data:
    PrevInputTime , NewInputTime,
    PrevPos , NewPos (Vector3)

    Can you help me about how to calculate Forward and Turn paramaters from this data ?

    Best Regards.

    Attached Files: