SA-MP Forums Archive
Spawning cars in an oval - 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: Spawning cars in an oval (/showthread.php?tid=531005)



Spawning cars in an oval - Luis- - 10.08.2014

Wondering if it's possible to do, surely it will be!


Re: Spawning cars in an oval - Misiur - 10.08.2014

Sorry, could you precise oval? As in cars spawned on oval path, facing inwards/outwards?

For starters, check out creation of the path: http://en.wikipedia.org/wiki/Ellipse#Equations
Example: http://www.wolframalpha.com/input/?i...8%29%5E2+%3D+1

Googling further I've found this: http://math.stackexchange.com/questi...nts-in-ellipse - so, now you can reverse the equation and get required angle for your vehicles.

Try scribbling something, and see how it works out


Re: Spawning cars in an oval - Luis- - 10.08.2014

Ah right, and I'm just going to see what works best with the vehicles facing inwards an outwards.