SyncTransform
Options
Hi ,
I am working on car multiplayer game , i have a transform attached to the car which is the spawn point for bullets i instantiate for car. i am using RPC ,photontargets.AllViaServer so that all player spawn bullet at same time. now the problem i am getting is after i send RPC with positions . the car moves a bit and the bullet transform component also moves with it is there anyway to sync the position to the latest bullet transform position
I am working on car multiplayer game , i have a transform attached to the car which is the spawn point for bullets i instantiate for car. i am using RPC ,photontargets.AllViaServer so that all player spawn bullet at same time. now the problem i am getting is after i send RPC with positions . the car moves a bit and the bullet transform component also moves with it is there anyway to sync the position to the latest bullet transform position
0
Comments
-
Hi @Romin,is there anyway to sync the position to the latest bullet transform position
You can maybe send the position with the RPC to have the same value on all clients.0 -
@Christian_Simon
HI , I am doing that already but game is fast paced vehicle movement by the time position reaches to everyone the vehicle's position changes0 -
You can try to apply Lag Compensation to the characters and see if it looks better than before. You can also apply Lag Compensation to the bullets you have shot.0
-
@Christian_Simon
thanks . this is something that can work0