Client/Server synchronization
by Olivier Arguimbau · in Torque Game Engine · 01/09/2002 (1:13 am) · 3 replies
Hi.
I want to know if there's a way (i'm sure it is but i don't know how yet) to get a single TIMER on the server and synchronize it on each clients.
What i want to do is to synchronize the water waves on all clients. The water waves use a sinus function depending on the position and the current time, if i can synchronize the clients with the server timer i can have an uniform wave on all clients.
I'm sure it's an easy question.
I hope....
I want to know if there's a way (i'm sure it is but i don't know how yet) to get a single TIMER on the server and synchronize it on each clients.
What i want to do is to synchronize the water waves on all clients. The water waves use a sinus function depending on the position and the current time, if i can synchronize the clients with the server timer i can have an uniform wave on all clients.
I'm sure it's an easy question.
I hope....
About the author
#2
I didn't find a tutorial on mission timer but i'll look at the code...
Thanks for your help !
01/09/2002 (2:49 am)
I'll take a look.I didn't find a tutorial on mission timer but i'll look at the code...
Thanks for your help !
#3
I use Sim::getSimTime() and it works fine !
Now with the magic function fluid::GetWaterLevel... i can move my vehicles on the waves :)
I'm happy :)
01/09/2002 (5:40 am)
Cool :)I use Sim::getSimTime() and it works fine !
Now with the magic function fluid::GetWaterLevel... i can move my vehicles on the waves :)
I'm happy :)
Torque 3D Owner Phil Carlisle
Phil.