News Forums Sample Projects, How To’s, and Code Samples How to make AI collide?

This topic contains 2 replies, has 2 voices, and was last updated by  TRALLALAL 2 months, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31905

    IvanDevelopment
    Participant

    So i am making a game where there are for example 10 enemies and i want all of them to move to me,i do it true the behavior tree and 15 is close enough distance, i gave them rigidbodys, and colliders so they dont go inside one another( 2 colliders one a trigger the other not), now the problem is when they collide… the colliders just get destroyed somehow no clue why or how, sometimes the trigger one disappear other times the real collider disappears and other times bought go away…
    CAN SOMEONE TELL ME THE BEST WAY TO MANAGE COLLISION ON AI THAT ARE SET TO FOLLOW THE PLAYER THILL A CLOSE ENOUGHT DISTANCE? THANKS.
    ON OTHER WORDS HOW DO I PREVENT AI FROM WALKING INSIDE ONE ANOTHER.

    #31913

    IvanDevelopment
    Participant

    … i am stupid… anyways i fixed the problem it was really stupid…
    but still? is there a bether way to make them not go inside one a nother without using a rigidbody?

    #31945

    TRALLALAL
    Participant

    Go to the behavior editor and go to your move action, look for Close Enough Distance and write a number, I use 3 and it works great :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.