how to do car ai?
Hi,
By using waypoints i did car ai. it working fine only. but the ai car completely indipendent from the player car. i need to do ai car should go by considering player car . how can i do? thank you
Comment
Did you want to car to go towards the player, or around the player to not collide with them?
For the first case, simply set the player as the waypoint and the car will go right to it.
For the second case, things get a lot more complicated! Raycasting out in different directions and having various maneuvers activate based on which ones are active would be the first method that comes to $$anonymous$$e. Such as if a raycast is hit 20 degrees to the left of the car, you should swerve right a bit.