Skip to content

How do I force an update with ClientNetworkTransform or NetworkTransform? #3455

@marcusx2

Description

@marcusx2

I have the following situation. I am using the Update loop to do some stuff, and I'm moving a network object with a clientnetworktransform. The states are supposed to synchronize by moving the transform itself, because the movement hits colliders and triggers behaviour.

My problem is that the ClientNetworkTransform is not always synchronized across clients. Sometimes a trigger doesn't fire on a client because the object is not on the place it's supposed to be. It can be slightly off.

My question is: Is there a way to force the transform synchronization? Say, I hit a collider with the transform. As the owner of the networkobject, I want to send an rpc to all clients to move the tranform to that position. The owner keeps moving the transform, but I want to guarantee that a specific position happens across clients, so they all trigger the collider.

What is the proper way of dealing with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:supportQuestions or other support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions