Getting the crosswinds? - 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: Getting the crosswinds? (
/showthread.php?tid=295624)
Getting the crosswinds? -
Luis- - 06.11.2011
Is this possible? I wouldn't mind finding out about it, if it is possible that is. Sorry for the spam. I seriously want to learn.
Re: Getting the crosswinds? -
Luis- - 07.11.2011
Bump.
Re: Getting the crosswinds? -
Luis- - 09.11.2011
Could someone please help me?
Re: Getting the crosswinds? -
Memoryz - 09.11.2011
Crosswinds?
Re: Getting the crosswinds? -
admantis - 09.11.2011
There are no.. crosswinds.
Re: Getting the crosswinds? -
dowster - 09.11.2011
however, basic meteorology should teach you that wind is just the air equaling in pressure between two temperatures. E.G. It is really hot in San Fierro, but cold out on the ocean, the air over the ocean is colder, therefore more dense. Air over San Fierro is warmer therefore less dense. The air will move from the ocean to San Fierro, to equal out the air pressure/temperature. If you can build some kind of code to create dynamic temperatures depending on server weather and location, then you can certainly get the direction of wind, figure out how fast that wind would be going. Then get the player's heading, and see which direction they are moving relative to wind direction.
Re: Getting the crosswinds? -
Norn - 09.11.2011
Quote:
Originally Posted by dowster
however, basic meteorology should teach you that wind is just the air equaling in pressure between two temperatures. E.G. It is really hot in San Fierro, but cold out on the ocean, the air over the ocean is colder, therefore more dense. Air over San Fierro is warmer therefore less dense. The air will move from the ocean to San Fierro, to equal out the air pressure/temperature. If you can build some kind of code to create dynamic temperatures depending on server weather and location, then you can certainly get the direction of wind, figure out how fast that wind would be going. Then get the player's heading, and see which direction they are moving relative to wind direction.
|
You just blew my mind.
Re: Getting the crosswinds? -
Steven82 - 09.11.2011
Quote:
Originally Posted by dowster
however, basic meteorology should teach you that wind is just the air equaling in pressure between two temperatures. E.G. It is really hot in San Fierro, but cold out on the ocean, the air over the ocean is colder, therefore more dense. Air over San Fierro is warmer therefore less dense. The air will move from the ocean to San Fierro, to equal out the air pressure/temperature. If you can build some kind of code to create dynamic temperatures depending on server weather and location, then you can certainly get the direction of wind, figure out how fast that wind would be going. Then get the player's heading, and see which direction they are moving relative to wind direction.
|
How in the hell did you know that dowster..?
Re: Getting the crosswinds? -
Ensconce - 09.11.2011
Quote:
Originally Posted by dowster
however, basic meteorology should teach you that wind is just the air equaling in pressure between two temperatures. E.G. It is really hot in San Fierro, but cold out on the ocean, the air over the ocean is colder, therefore more dense. Air over San Fierro is warmer therefore less dense. The air will move from the ocean to San Fierro, to equal out the air pressure/temperature. If you can build some kind of code to create dynamic temperatures depending on server weather and location, then you can certainly get the direction of wind, figure out how fast that wind would be going. Then get the player's heading, and see which direction they are moving relative to wind direction.
|
Or you could alter the x or y velocity of the plane depending on the heading to simulate the effects of crosswinds...
Re: Getting the crosswinds? -
dowster - 09.11.2011
Quote:
Originally Posted by Norn
You just blew my mind.
|
and i didn't even charge you for it
Quote:
Originally Posted by Steven82
How in the hell did you know that dowster..?
|
Learned it in middle school science.. we had a pretty good science program in middle school
Quote:
Originally Posted by Ensconce
Or you could alter the x or y velocity of the plane depending on the heading to simulate the effects of crosswinds...
|
I thought he just wanted to know what the crosswind was, to display it on some sort of textdraw based flying HUD