What does velocity represents?
#1

When I use GetPlayerVelocity or GetVehicleVelocity, what the numbers represents? (like m/s and km/h)
Reply
#2

they are not in ms/kmph u need to convert them
like this
pawn Код:
new Float:x,Float:y,Float:z;
GetVehicleVelocity(vehicleid,x,y,z);
YourSpeedInkmph=floatsqroot((x*x)+(y*y)+(z*z))*198;
YourSpeedInMPH=YourSpeedInkmph*0.621371192;
if you find more about this search how to make speedometer samp on ****** and see the tuts they explain more
Reply
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
they are not in ms/kmph u need to convert them
like this
pawn Код:
new Float:x,Float:y,Float:z;
GetVehicleVelocity(vehicleid,x,y,z);
YourSpeedInkmph=floatsqroot((x*x)+(y*y)+(z*z))*198;
YourSpeedInMPH=YourSpeedInkmph*0.621371192;
if you find more about this search how to make speedometer samp on ****** and see the tuts they explain more
I don't want to convert them, I want to know what does the represent?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)