Flip tick-based simulation transforms

Options

We making a pvp game (dedicated server) in which your team will always be coming from the left side while the rival team will be coming from the right. I want to use the tick-based simulation to have the same simulation in both clients. Is it possible to sync the transforms positions and then flip them for the clients?

Answers

  • emotitron
    emotitron ✭✭✭
    edited March 2022
    Options

    If you are using NetworkTransform, you may want to try deriving your own class from NetworkTransform, and override the GetEnginePosition/Rotation() and SetEnginePosition/Rotation() methods, where you can modify the x values and rotation as needed to flip it locally, based on Object.HasInputAuthority.