Pawno Geometry - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawno Geometry (
/showthread.php?tid=652977)
Pawno Geometry -
cengiz6155 - 23.04.2018
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;
}
Re: Pawno Geometry -
Eoussama - 23.04.2018
That's simple math, with a basic understanding of Trigonometry you can surely get a grasp on that.
Re: Pawno Geometry -
cengiz6155 - 23.04.2018
Quote:
Originally Posted by Eoussama
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?
Re: Pawno Geometry -
Eoussama - 23.04.2018
Just ****** it, you'll find a lot of results, It's something you learn at school, here's a
wiki page for this.
Re: Pawno Geometry -
OneDay - 23.04.2018
This is not pawno
Re: Pawno Geometry -
cengiz6155 - 23.04.2018
Quote:
Originally Posted by OneDay
This is not pawno
|
what is that ?
Re: Pawno Geometry -
cengiz6155 - 23.04.2018
Quote:
Originally Posted by Eoussama
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.
Re: Pawno Geometry -
Dayrion - 23.04.2018
Quote:
Originally Posted by cengiz6155
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.
Re: Pawno Geometry -
cengiz6155 - 23.04.2018
Quote:
Originally Posted by Dayrion
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.
Re: Pawno Geometry -
Redirect Left - 25.04.2018
Quote:
Originally Posted by cengiz6155
the coordinates of a vehicle are not given at school.
|
The knowledge to work it out is though. Whilst the math involved is certainly more complex than the basic level of maths learnt at school. You should be learning this stuff in the higher tiers (like age 14 upwards).
It's fairly basic trigonometry and algebra, which is of a bit of a higher tier of maths than the simple stuff, but it isn't super difficult.