- Home /
Smooth network communication like Unity remote
Hi
I am sending very little data from an iPhone(client) to the computer(server) over the network: A float which has the iPhone's acceleration.x variable. I am using this for rotating a plane. However the rotation is not very smooth. It is very shaky as if there was some delay in the communication.
I am using Slerp to make the rotation more fluent always using the newest input. However it doesnt help much. If I use the Unity remote instead the communication is completely smooth eventhough its actually sending more data.
How can I acheive a similar solution?
Answer by Mish · Jan 11, 2012 at 12:41 PM
I found a solution which gives a nice result. By observing a script on the network view which send the iPhone input from the device to the computer and setting state synchronization to unreliable, Slerp can be used. The plane should always be rotating in the direction from the last received input. However this will only work nicely if the send rate is set to something low, for instance 5-10 which will assure that the rotation is not updated constantly which will give the "lag".
Your answer
Follow this Question
Related Questions
how to create a simple udp network to send text data c# 0 Answers
Server and Network no communication 1 Answer
Pass an array from server to clients 0 Answers
Network Issues 0 Answers
Seperate server - client 2 Answers