Calculating velocity of characters?

04/13/2011 22:11 sjaakie100#1
I started a new project and I need the velocity of the characters in that program for example the movement. I've search a bit on google and I found a post of drew which he explained that he was also busy with that and he timed how long ik took for a character to move to an specific point and his conclusion was that if a character has a moving speed of 16.00 it took 13 seconds to get 16 units futher at one axe. so the velocity of the character with that speed is 1.23/unit.

But when I use 1.23 in my calculation it's too slow (and yes the character was in walking mode and not running which is 50.00)

Does someone know the exact way to calculate the velocity or is it somewhere in the client files?

Thanks in advance
04/14/2011 15:24 kevin_owner#2
Well You could you a stopwatch and see how fast the character walks in an x amount of time.

Mabye just record the gameplay with as much fps as possible so you can get the exact time between 2 points.

So start recording -> walk -> stop recording and see how long it took to walk a certain distance
04/14/2011 16:19 bootdisk#3
The client should have something to predict movements. For instance, it's what is used in all the FPS since Quake times.

On FPS it was used to compensate lag problems.
It's called Client-side_prediction.

If you don't like reversing then you should try the human way: how that was acquired? how it works?

I don't think putting some random numbers will give you what you want. I'd try something more "mathematical". For instance, maybe starting with Linear Motion and then going on til you find a real way than magical numbers or timers.

And it's not because I'm a math-freaky or programming-freaky, but I'd say that I like to find out things or get the closest answer to a problem.

(I'd say my favourite part of programming is maths... I can waste more than 10 hours in a row thinking about something and not paying attention to anyone. xD)
04/15/2011 01:32 Oriya9#4
The default movement speed (running) is 50, which is 5 units a second.
which means each speed "point" is 0.1 unit a second.
so if your movement speed is 16, you'll move a 1.6 unit a second.

the distance is a square root distance of course.. so either get the correct square root distance or just walk in a straight line (like x10,y0 to x55,y0).
[Only registered and activated users can see links. Click Here To Register...]
you'll see it is 0.1 unit per speed "point" (square root!).
04/15/2011 08:51 sjaakie100#5
Thank you all for your answers.

i think i can make what i want with these answers:)

Thank you:)