Hello
I'm working on a top down racer and i'm having some problems getting the ai cars moving the way i want them to
It's setup so they move from node to node, always targeting the next node. This works fine with vector movement but the problem is they don't drift. It's like they're glued to the track
I've tried to achieve something similar using physics instead but i can't make it work. I suspect this is because of my less than stellar trigonometry skills but here is what i've tried so far
- compare the angle of the car with the angle between the car and the next node and then rotate accordingly while applying force at the current angle of the car. This sorta works except sometimes they will drive a full extra circle
- use the advanced directional object. That just opened a new can of worms since i've never used it before and looking through the samples i didn't really find anything i could apply to my situation
So any help would be very much appreciated
Either with applying drifting using the vector movement or a physics setup that actually works, as in the ai cars are able to determine if they're within 10 degrees of a given node and if not, rotate towards it and then apply force
Thanks!:D