Dynamic Obstacle Avoidance« Back to Previous Page
How can I make AI Avoid walking through other AI and Dynamic Objects?
|
▲ ▼ |
Prime how do you stop path finding? For example, if my character is on a waypoint route and moving to the next node, I want to stop and move to another MoveLookTarget position and then resume to the waypoint I was headed. Is this don’t via PathFindAction.Stop()?? |
▲ ▼ |
I don’t have a great answer for you, because all solutions have problems. You may want to consider using a custom motor with raycasting. Whenever you decide you need to avoid something, just ignore the path and move directly toward your avoidance point. Then once you are either at the avoidance point or no longer in danger of colliding, resume path following. |
▲ ▼ |
If there were a really straightforward answer for that, the solution would already be in RAIN I was hoping that Rain had it built in The simplest approaches will use raycasting to detect upcoming collisions and redirect AI movement to avoid the collision. How do I reroute the path if a collision is detected? |
▲ ▼ |
Hey Chris, If there were a really straightforward answer for that, the solution would already be in RAIN The simplest approaches will use raycasting to detect upcoming collisions and redirect AI movement to avoid the collision. It gets tricky when It gets even tougher when you want the results to be realistic. Should you slow down and stay on your path? Should you speed up? Should you go around? Compute an entirely new path? Stay on course and wait for the other guy to go around? Here’s what we’re currently working to add to RAIN: We’re still trying to perfect these solutions and don’t have a scheduled release date yet. |