How does synchronization take place between physics objects?

Options
Basically I want to add another set of objects that need to be synchronized with physics. Occasionally players will interact with the objects and they must all be synchronized. I have the objects in the scene and the standard methods of OnSyncedInput/OnSyncedUpdate on the player's scripts, but adding the input handling to these methods does not appear to guarantee physics synchronization. Sometimes the synchronization fails.

Best Answer

Answers

  • ScriptGeek
    Options
    Here is a video illustrating the difficulty I'm having: sendvid.com/7hwnm4sr

    Each of the 3 windows should appear the same, but somehow within the simulation the lines appear no longer synchronized. Within the 1st minute the synchronization fails from the very beginning sets of making taps on the screen.
  • ScriptGeek
    Options
    Each of those red lines (3 of them) has:

    Transform
    Cylinder (Mesh Filter)
    Mesh Renderer
    TSTransform
    TSBoxCollider
    TSRigidbody
    TSMaterial
  • ScriptGeek
    Options
    @JeffersonHenrique Thanks, I think it's running synchronized now. I've tested it several times with the rollback set to zero and have yet to see it become de-synced.