Thread: Pawno Geometry
View Single Post
Old 23/04/2018, 09:40 AM   #1
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Pawno Geometry

Hello, Where can I learn these geometry operations?



Code:
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;
}
cengiz6155 is offline   Reply With Quote