Topic: Velocity

Hello, is there some way to measure velocity of translating objects?

Re: Velocity

you can calculate the length of the current position minus the last frame position of an object,
in lua :

velocity = length(currentPos - lastPos)

Re: Velocity

Sweet, so that's the length of two vectors?

Re: Velocity

yes, because velocity is distance/time and that the logic is running at 60fps,
you can simply calculate the length of the difference vector of the two positions in time.