Download

Environment query overlap test with context

I’m trying to find attack spot for AI, but when there are many AI’s, some time they will try to go to the spot that’s already occupied by another AI. So I try to add some filter like if there’s some AI occupying this spot already, go somewhere else.

Overlap testing seems to be the closest I can think of, but the problem is, it counts Querier in as part of the test, resulting in AI keep changing from one spot to the next one every query execution, since the place it’s standing is overlapping with Querier itself.

Would it be possible to make Overlap testing with provided query context instead of selected channel, e.g. Actors Set, or testing overlap with channel exclude provided context e.g. Querier?

Thanks.