SA-MP Forums

Go Back   SA-MP Forums > Eoussama

Conversation Between Eoussama and cengiz6155
Showing Visitor Messages 1 to 1 of 1
  1. cengiz6155
    24/04/2018 04:59 PM
    cengiz6155
    Hello, Where can I learn these geometry operations?



    GetVehicleRelativePos(vehicleid, &Float, &Float:y, &Float:z, Floatoff= 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;

All times are GMT. The time now is 07:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.