11.03.2015, 19:24
(
Последний раз редактировалось Nero_3D; 26.03.2015 в 14:54.
)
No clue if that has been posted but I only saw a lot of converting functions from quat to matrix, quat to euler and so on but no simple function which uses the quat itself :/
Because it is a little bit more I put it on github Click
Because it is a little bit more I put it on github Click
pawn Код:
// Right of the vehicle
GetVehicleRelativePos(vehicleid, X, Y, Z, 1.0, 0.0, 0.0);
// In front of the vehicle
GetVehicleRelativePos(vehicleid, X, Y, Z, 0.0, 1.0, 0.0);