Wondering about the Simulate Controller()
Antheus
✭
in Photon Bolt
Hello !
Just finishing the advanced tutorial, I was trying to implement Bolt into a new project.
Everything is going pretty smoothly, but I'm having a hard time adapting my offline player script to it.
For example, how does the Simulate Controller work exactly ?
For what I saw, it's used to transfer simple unity input into bolt type ones,
and also call the Execute Command.
But when exactly is executing the Simulate Controller ?
Is it more like an update or a fixed update (because it does loop right ?)
I mean, my player is controlled and all, work just fine, but the input part is just pure unity ones, and I'll would love to be able to use the prediction
Thanks !
Just finishing the advanced tutorial, I was trying to implement Bolt into a new project.
Everything is going pretty smoothly, but I'm having a hard time adapting my offline player script to it.
For example, how does the Simulate Controller work exactly ?
For what I saw, it's used to transfer simple unity input into bolt type ones,
and also call the Execute Command.
But when exactly is executing the Simulate Controller ?
Is it more like an update or a fixed update (because it does loop right ?)
I mean, my player is controlled and all, work just fine, but the input part is just pure unity ones, and I'll would love to be able to use the prediction
Thanks !
0
Comments
-
Within SimulateController you queue input locally to the entity you are controlling for prediction and the server.
SimulateController, SimulateOwner, etc are all called by Bolt on FixedUpdate.
https://doc.photonengine.com/en-us/bolt/current/in-depth/update-loop
https://doc.photonengine.com/en-us/bolt/current/in-depth/commands
https://doc.photonengine.com/en-us/bolt/current/community-wiki/bolt-essentials/bolt-commands0 -
Ok. Thanks.
How does the prediction work exactly ?
Is it possible to control it ?
Still have a doubt about that.0 -
If you read the last two docs I posted the go into depth on that topic
0