Avoiding another actors

ApexApex 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?

Best Answer

  • CluvCluv Posts: 229
    Accepted Answer
    You 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

  • ApexApex Member, PRO Posts: 56
    2 days and no answer XD

    I think I ask too much.
  • jamies15-3jamies15-3 Member Posts: 94
    Il have a bash at it, I take it you want an actor to move from A to B but avoid a wall thats in its path as the path is straight right?
    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.
  • ApexApex Member, PRO Posts: 56
    Sorry. I do not understand what are you trying to say. :(

    Which of actors must update the table ? And Interpolate what ?
Sign In or Register to comment.