Re: [opensource-dev] Client-side prediction

2010-02-06 Thread Carlo Wood
On Sat, Feb 06, 2010 at 03:09:50PM +, 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 cas

Re: [opensource-dev] Client-side prediction

2010-02-06 Thread Nexii Malthus
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 1. I build the lines by using the velocity vectors, the positions for their origin. 2. Then find the intersection point between these two lines and u

Re: [opensource-dev] Client-side prediction

2010-02-05 Thread Celierra Darling
I made a small mistake at the "current angle" (it should be -0.2ish radians instead of -pi/4), which makes the angle difference close to a semicircle. But still, if you add that, you end up with a vector pointing up and backwards... (If you subtract, you end up just heading back left...) Maybe I'

Re: [opensource-dev] Client-side prediction

2010-02-05 Thread Nexii Malthus
Ah, thanks Celierra. 3 planes, yes that makes a lot more sense. Hmm, trying to step through your calculations. I think you have to subtract the angle difference rather than add it on. I just tried visually going through your calcs and it seems to hit right on your perfect value p3. http://i48.tin

Re: [opensource-dev] Client-side prediction

2010-02-05 Thread Billy Rose
If you apply 6-sigma calculations to the expected future and the actual future as reported when the position changes, you can begin to build a predictor that has a high degree of precision and is based off quantifiable history. Using the predictor as a an input, you can fine tune the expect

Re: [opensource-dev] Client-side prediction

2010-02-05 Thread Celierra Darling
I'm not sure about this -- I tried this with a free-flight parabola and got a nonsense value out. Calculations attached at the end. What is the significance of the "anchor"? It looks like you're trying to estimate the center of the path's curvature? If you were doing that, you want to intersect