03.04.2010, 14:52
Hi!
I wanted to ask about vectors... how do they work?
As I remeber from my sleepy math classes then vectors are lines with starting coordinates and endind coordinates, but from useless physics classes I remeber that a force can be a vector and coordinate sum RMS is showing how large is the vector.
But I can't seem to understand how the vectors work in SA-MP, for example GetPlayerVelocity.
My goal is to figure out GetPlayerCameraPos, GetPlayerCameraFrontVector and GetPlayerCameraUpVector in order to create a simple script that would, for example, detect if I'm aiming at a object (coordinate range).
I wanted to ask about vectors... how do they work?
As I remeber from my sleepy math classes then vectors are lines with starting coordinates and endind coordinates, but from useless physics classes I remeber that a force can be a vector and coordinate sum RMS is showing how large is the vector.
But I can't seem to understand how the vectors work in SA-MP, for example GetPlayerVelocity.
My goal is to figure out GetPlayerCameraPos, GetPlayerCameraFrontVector and GetPlayerCameraUpVector in order to create a simple script that would, for example, detect if I'm aiming at a object (coordinate range).