[opensource-dev] Client-side prediction

Carlo Wood carlo at alinoe.com
Sat Feb 6 07:21:48 PST 2010

On Sat, Feb 06, 2010 at 03:09:50PM +0000, Nexii Malthus wrote:
> Hm, I'm probably terrible with explaining it in words.
> I think a step-by-step picture can help show what I did.
> http://i45.tinypic.com/2zgx4kg.png

I don't think that predicting a rotation will be very practical.
In most cases people walk straight and make sharp corners; so
if you detect that an angle, I'd assume that changed direction,
NOT assume that they are walking in a circle.

If you want to include prediction of curved paths then I think
you should add another sample (three points) and choose "circle"
if the path matches the path that one would follow if one holds
down the left or right arrow key while walking... but then again,
not that useful.

If people are walking around in mouse look, you just can't predict
anything -- unless the lag is so small that rotation prediction
is hardly necessary to begin with :/

Carlo Wood <carlo at alinoe.com>

More information about the opensource-dev mailing list