SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/04/2018, 01:35 PM   #21
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by Maxandmov View Post
Ok, is it some function you cannot find?
Or, more precise, what exactly are you trying to accomplish?
Geometric events such as sinus are constantly encountered. How can I learn geometry to solve them?
cengiz6155 is offline   Reply With Quote
Old 24/04/2018, 01:46 PM   #22
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by cengiz6155 View Post
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;
}
Friends, please help the subject is still unresolved. Where can I learn the formulas of these operations?
cengiz6155 is offline   Reply With Quote
Old 24/04/2018, 05:10 PM   #23
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Is there anyone who can help?
cengiz6155 is offline   Reply With Quote
Old 24/04/2018, 07:07 PM   #24
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by ****** View Post
I thought you said you read a geometry book. In what way do you think what it said does not apply here?
There is information on the 30 60 90 triangle in the book of geometry. But it does not coincide with the information.
cengiz6155 is offline   Reply With Quote
Old 25/04/2018, 10:33 AM   #25
Maxandmov
Big Clucker
 
Maxandmov's Avatar
 
Join Date: Feb 2011
Location: Moscow, Russia.
Posts: 150
Reputation: 11
Default Re: Pawno Geometry

Quote:
Originally Posted by ****** View Post
That sounds like you read some sort of extremely basic geometry book. You need a book on trigonometry specifically.
Bruh, everyone told him that. Unfortunately, he says he read it but it's of no help.
He's truly a special case in some way.
__________________
Give me rep, SAMPercluckers! (As long as I deserve it)
Maxandmov is offline   Reply With Quote
Old 25/04/2018, 10:40 AM   #26
CodeStyle175
Banned
 
Join Date: Apr 2014
Posts: 455
Reputation: 35
Default Re: Pawno Geometry

WTF man you need to understand just simple trigonometry.
CodeStyle175 is offline   Reply With Quote
Old 25/04/2018, 11:46 AM   #27
Redirect Left
High-roller
 
Redirect Left's Avatar
 
Join Date: Mar 2007
Location: Yorkshire, England
Posts: 1,022
Reputation: 371
Default Re: Pawno Geometry

Quote:
Originally Posted by cengiz6155 View Post
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.
__________________
Redirect Left, y'know? The one who started the Sumo Server craze? that's me, click here to play it!
I also run Mini-Missions, again, only 9 years after my last run at it! Life is ace, aint it?!
Redirect Left is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[PAWNO] Pawno won't compile my map, please help. CrazyBosnianGamer Scripting Help 6 03/06/2016 02:18 PM
Help With MD5 Include Pawno It damages Pawno Library giorgi1494 Scripting Help 0 31/10/2014 05:04 PM
Help With Pawno Needed I Changes The Name Becouse it Is Unleading It Was Pawno zzarzzur Help Archive 3 29/01/2010 03:50 AM


All times are GMT. The time now is 07:23 PM.


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