Player transform set to 0,0,0

Options

So basically I instantiate the car, when my player trying to sit on car I can see him perfectly, when another player trying to sit his transform goes to 0,0,0 of the map.

He can drive and I can see the car moving perfectly in all clients, and when he get out from the car I will see him.

I'm trying to see him while he is in the car.

(I am using SetParent to the sit, and I tried to RPC it it didn't change.)

Answers

  • Tobias
    Options

    It is tricky to move a networked object along with another networked object. Both will send updates and lerping between updates can cause jittery positions between the two.

    You may want to come up with a custom PhotonTransformView, which can tell everyone that the character is seated in object XYZ and then not to interpolate it's position on it's own.

    I don't have an implementation for this, sorry.