I'm writing MMORPG game. Every seconds clients send their coordinates to my server and then server pushes it to another clients. So my problem is - how i can create smooth transform? Here is my client code:
It's totally okay for me. but when i tried to use that code for another players it doesn't work for me. Here is my code for another players:
p.s. that job is running as coroutine.
asked Apr 18 '10 at 02:19 AM
FIrst of all using Find() is supposed to be really slow, so using it in an update method (or coroutine) is not recommended. You should probably think about updating the positions of the client's more than once per second. In any case you'd have to use some kind of movement prediction for the frames between those updates. One way to do this is to determine the last known velocity of the player, move it accordingly and correct errors after the next position update.
answered Apr 18 '10 at 09:32 AM
You could use the Lerp command or MoveToward commands to answer your question
answered May 14 '11 at 04:34 AM