Posts: 1,648
Threads: 482
Joined: Jun 2010
I've never understood how these things work can someone explain them?
Posts: 1,648
Threads: 482
Joined: Jun 2010
Thank you, can you explain the velocity thing?
Posts: 332
Threads: 30
Joined: Oct 2011
Reputation:
0
velocity kinda checks your speed i think
Posts: 434
Threads: 19
Joined: Aug 2011
Reputation:
0
velocity is measured on a global x/y/z plane.
Imagine that the entire GTA-SA 3D worldspace was one large 3D grid.
Moving UP the grid (skyward) will increase your Z position, moving DOWN it will DECREASE your Z position.
Heading North via the minimap I'm pretty sure is +Y, South is -Y, east is +X, west is -X (please correct me if I am wrong.)
So Velocity is simply a value that indicates how many squares you move per player update (client) and in what direction.
GetPlayerVelocity will return 3 values, X, Y, Z.
if you are headed north along the road at 1 gridsquare per update, your velocity SHOULD be (again if I am right with my definition of relativity) X=0, Y=1, Z=0
Having two values as 1, say X=1 Y=1, Z=0 would indicate that you are heading North-East at a rate of 1 gridsquare per update.
Posts: 702
Threads: 94
Joined: Dec 2010
Reputation:
0
its the number of X and Y coords your passing through every second with respect to the direction.