Hi,
i'm currently working on AI opponents for a racing game
The AI follows a spline and steers towards a target position some distance ahead, in some scenarios the direct path towards the target position crosses the track limits
Any ideas on how i could check performantly if that's the case for a path between 2 points along a spline with width x?
#Racing game AI
1 messages · Page 1 of 1 (latest)
I tried to make an AI in a space ship game moving with the same means as a human player. I made it like chess by evaluating moves to do in the future and give a score of how far from the ideal line, how much closer to the goal, pointing along the line and speed.
It worked partly. It is very complex to do steering like a human player. And this method was perhaps not the best.
One way I can think of is having a trigger collider along the edge so thta you can detect it with a raycast.
But perhaps you should just reduce the distance between the waypoints on the spline?