No collision between a group of moving characters

Hello, I have a bit problem here with the collision between multiple moving characters.

My characters are being moved each one with an own timeline. For each update I set the actor location of that character in order to simulate the movement.

The only way I could get a proper collision was by enabling the “sweep” check in the SetActorLocation node but whis won’t work since the characters just stop after a collision.

I’m there must be an “easy” way to get this but I can find it right now.
I’ve put all the components to BlockAll, BlockAllDynamic and many other options too.
I’ve also tried to put a box collision in the original static mesh of the cube.

image


Any idea?

Thanks.


As you can see in the tooltip only the root component is checked for the sweep.

If you want all components to have this behavior then you’d need to make them generate on hit and then add a stop event that would be called on hit (connected to timeline’s stop)

1 Like

I mean, I don’t even know how this “sweep” works. The only thing I know is that without checking it, all my characters just pass through others and when I check it they have collision but this collision stop them.

I will show you both case (with and without sweep)

Sweep enabled

Sweep disabled

Thanks

If you want them to collide and perhaps slightly bound off each other then you could use physics based movement.

Another option would be to have them avoid each other via the navmesh and ai controller

Most newer rts games with large groups tend to use flow fields to guide units.