SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/04/2018, 09:40 AM   #1
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default 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;
}
cengiz6155 is offline   Reply With Quote
Old 23/04/2018, 09:56 AM   #2
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,077
Reputation: 283
Default Re: Pawno Geometry

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

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 23/04/2018, 09:59 AM   #3
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by Eoussama View Post
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?
cengiz6155 is offline   Reply With Quote
Old 23/04/2018, 10:14 AM   #4
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,077
Reputation: 283
Default 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.
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is offline   Reply With Quote
Old 23/04/2018, 10:42 AM   #5
OneDay
Huge Clucker
 
Join Date: Sep 2015
Posts: 294
Reputation: 139
Default Re: Pawno Geometry

This is not pawno
OneDay is offline   Reply With Quote
Old 23/04/2018, 11:09 AM   #6
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by OneDay View Post
This is not pawno
what is that ?
cengiz6155 is offline   Reply With Quote
Old 23/04/2018, 11:11 AM   #7
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by Eoussama View Post
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.
cengiz6155 is offline   Reply With Quote
Old 23/04/2018, 11:32 AM   #8
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,917
Reputation: 258
Default Re: Pawno Geometry

Quote:
Originally Posted by cengiz6155 View Post
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.
__________________
actor_plus - v5.0.2
I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath
Dayrion is offline   Reply With Quote
Old 23/04/2018, 12:05 PM   #9
cengiz6155
Little Clucker
 
Join Date: Jul 2015
Posts: 44
Reputation: 0
Default Re: Pawno Geometry

Quote:
Originally Posted by Dayrion View Post
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.
cengiz6155 is offline   Reply With Quote
Old 23/04/2018, 12:49 PM   #10
OneDay
Huge Clucker
 
Join Date: Sep 2015
Posts: 294
Reputation: 139
Default Re: Pawno Geometry

Quote:
Originally Posted by cengiz6155 View Post
what is that ?
Pawn
OneDay 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 06:16 AM.


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