PDA

View Full Version : Spawning cars in an oval


Luis-
10/08/2014, 10:01 AM
Wondering if it's possible to do, surely it will be!

Misiur
10/08/2014, 10:36 AM
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=%28x%2F5%29%5E2+%2B+%28y%2F8%29%5E2+%3D+1

Googling further I've found this: http://math.stackexchange.com/questions/612981/find-angle-at-given-points-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

Luis-
10/08/2014, 10:43 AM
Ah right, and I'm just going to see what works best with the vehicles facing inwards an outwards.