Pawno Geometry
#1

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;
}
Reply
#2

That's simple math, with a basic understanding of Trigonometry you can surely get a grasp on that.
Reply
#3

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?
Reply
#4

Just ****** it, you'll find a lot of results, It's something you learn at school, here's a wiki page for this.
Reply
#5

This is not pawno
Reply
#6

Quote:
Originally Posted by OneDay
Посмотреть сообщение
This is not pawno
what is that ?
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)