racing game: AI Car not turning corners correctly

allc1865allc1865 Member, PRO Posts: 777
Hi everyone!
In my game, my AI Car is controlled by actors that I put in the scene to tell it when to turn and how much to turn.
The way my game works is this: I create a new actor that is, say, -20. I put that actor on the scene, then go into my AI car and say, when it overlaps or collides with actor -20, change self attribute: rationIncrease to self.rotaionIncrease-20.
Everything works; when my AI car collides with the -20 actor it turns as it should. It's just that when it gets to a certain point, the car will spin out and go the other direction. I'm not sure why it does this so I wondering if anyone knew why or had any suggestions...

Thanks guys

Best Answer

Answers

Sign In or Register to comment.