Choppy Rotation in Demo

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

jimbobway
Posts: 20
Joined: 26 Oct 2010, 15:57

Choppy Rotation in Demo

Postby jimbobway » 21 Jun 2011, 18:44

Hi,

I migrated some code from the FPS demo to our project. However when there is translation being sent to the server, it is choppy in the receiving client. The enemy characters movements are not smooth.

One thing I also noticed was that in the FPS demo the rotation was choppy and not smooth. Shouldn't interpolation smooth out the rotation? I am thinking maybe my problem could be related to the fact that the rotation is choppy.

I am looking at NetworkTransformInterpolation but no luck...thx.
jimbobway
Posts: 20
Joined: 26 Oct 2010, 15:57

Postby jimbobway » 21 Jun 2011, 21:36

Ok I got it working when I transferred the files over. I had to set the NetworkTransformInterpolation to extrapolation. (When I copied the files over it defaulted to interpolation.)
jimbobway
Posts: 20
Joined: 26 Oct 2010, 15:57

Rotation choppy

Postby jimbobway » 23 Jun 2011, 21:33

Ok, I got the transform to be smooth but the rotation is still choppy. In the file NetworkTransformInterpolation there is no extrapolation for rotation. It even says so in the code:

Code: Select all

      
         // No extrapolation for the rotation
   transform.rotation = bufferedStates[0].Rotation;


So the rotation is choppy. Does anyone have code to make the rotation smooth for extrapolation?

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 26 guests