Avoiding another actors
Apex
Member, PRO Posts: 56
Hello everyone!
I have an actor that will move from one point to another. There are another wall actors that will repel my Moving actor.
Question: How I will make Moving actor avoid Wall Actors during its movement?
I have an actor that will move from one point to another. There are another wall actors that will repel my Moving actor.
Question: How I will make Moving actor avoid Wall Actors during its movement?
Best Answer
-
Cluv Posts: 229You can create another wall actor slightly larger than the one you have as a buffer. Don't allow the buffer to repel you actor, but allow it collide. That way, it will hit the buffer, but shouldn't reach your repelling wall.
Answers
I think I ask too much.
Well if the path remains the same id say use and interpolate rule and read coordinates off a table ever 0.5 sec then it will have a smooth path around the object (once you have added it into the table).
Or if you want a more dynamic way, again use an interpolate rule but this time the table results need to be altered by the actor that is in the way of the A-B path, you could do this by drawing a new actor that goes from A - B and when it over laps with the wall it forces the wall to update the table that the actor reads from.
I believe that this would work and give a smooth movement.
Let me know if you get it work.
Which of actors must update the table ? And Interpolate what ?