23.04.2018, 09:40

Hello, Where can I learn these geometry operations?

Код:

GetVehicleRelativePos(vehicleid, &Float:x, &Float:y, &Float:z, Float:xoff= 0.0, Float:yoff= 0.0, Float:zoff= 0.0) { new Float:rot; GetVehicleZAngle(vehicleid, rot); rot = 360 - rot; GetVehiclePos(vehicleid, x, y, z); x = floatsin(rot, degrees) * yoff + floatcos(rot, degrees) * xoff + x; y = floatcos(rot, degrees) * yoff - floatsin(rot, degrees) * xoff + y; z = zoff + z; return 1; }