Input on all clients
Options
Tagra
✭
in Photon Bolt
Hello,
Currently working on racing game, i want to simulate physics on every client and make error correction latter.
I want that input is made not only to Owner and Server (like example below) but to all clients.
Can you suggest how can i do this ? Maybe someone can share working bolt vehicle example ?
Thanks !!!
Currently working on racing game, i want to simulate physics on every client and make error correction latter.
I want that input is made not only to Owner and Server (like example below) but to all clients.
public override void ExecuteCommand(Bolt.Command command, bool resetState) {
PlayerCommand cmd = (PlayerCommand)command;
if (!resetState) {
var result = _motor.SetInput(cmd.Input.Vertical,cmd.Input.Horizontal);
}
Can you suggest how can i do this ? Maybe someone can share working bolt vehicle example ?
Thanks !!!
0