SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Pawno Geometry (https://forum.sa-mp.com/showthread.php?t=652977)

cengiz6155 23/04/2018 09:40 AM

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;
}


Eoussama 23/04/2018 09:56 AM

Re: Pawno Geometry
 
That's simple math, with a basic understanding of Trigonometry you can surely get a grasp on that.

cengiz6155 23/04/2018 09:59 AM

Re: Pawno Geometry
 
Quote:

Originally Posted by Eoussama (Post 4014448)
That's simple math, with a basic understanding of Trigonometry you can surely get a grasp on that.

Would you send me a link to help me?

Eoussama 23/04/2018 10:14 AM

Re: Pawno Geometry
 
Just ****** it, you'll find a lot of results, It's something you learn at school, here's a wiki page for this.

OneDay 23/04/2018 10:42 AM

Re: Pawno Geometry
 
This is not pawno

cengiz6155 23/04/2018 11:09 AM

Re: Pawno Geometry
 
Quote:

Originally Posted by OneDay (Post 4014457)
This is not pawno

what is that ?

cengiz6155 23/04/2018 11:11 AM

Re: Pawno Geometry
 
Quote:

Originally Posted by Eoussama (Post 4014453)
Just ****** it, you'll find a lot of results, It's something you learn at school, here's a wiki page for this.

the coordinates of a vehicle are not given at school.

Dayrion 23/04/2018 11:32 AM

Re: Pawno Geometry
 
Quote:

Originally Posted by cengiz6155 (Post 4014468)
the coordinates of a vehicle are not given at school.

As Eoussama said, this is general mathematic knowledge. You just need to know when you can apply them. Like this case, for example.

cengiz6155 23/04/2018 12:05 PM

Re: Pawno Geometry
 
Quote:

Originally Posted by Dayrion (Post 4014474)
As Eoussama said, this is general mathematic knowledge. You just need to know when you can apply them. Like this case, for example.

Please help me learn how to do this.

OneDay 23/04/2018 12:49 PM

Re: Pawno Geometry
 
Quote:

Originally Posted by cengiz6155 (Post 4014465)
what is that ?

Pawn


All times are GMT. The time now is 01:11 AM.

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