Velocity
#1

Using the following code, I was looking forward to learning how velocity works in SA:MP.

pawn Код:
SetTimer("OneSecond", 1000, true );

forward OneSecond( playerid );
public OneSecond ( playerid )
{
    new Float:X, Float:Y, Float:Z, str[128];
    GetVehicleVelocity( GetPlayerVehicleID(playerid), X, Y, Z );
    format(str,128,"X: %f, Y: %f, Z: %f", X, Y, Z);
    return SendClientMessage( playerid, -1, str);
}
To my suprise, a higher speed does not necessarily mean a higher velocity. Can anybody explain to me how velocity works in the GTA engine?
Reply
#2

i dont know anything about this but i have read the wiki
http://en.wikipedia.org/wiki/Velocity

says it measures both speed and direction,
that link might help hopefully.
Reply
#3

Velocity = Distance / Time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)