Ignore some pawn collision but not all...

Elites94
Wed, 29 Jan 2025 16:53:51 +0000
Programming & Scripting

Hello !

I have a big problem in my game…
The thing seems to be quite simple : I would like to have no collision between players.
So… I set collision to ignore for pawn in my player character. And yes it works I haven’t collision anymore between player.

BUT, like this, I have no collision with the AI but I would like to keep collision with the AI (they are pawn too)…

So, I decided to try to create a new object type named CharPawn, and replace the player object type by it. Then, ignore this type instead of pawn for collision.
BUT, my player don’t spawn anymore at player start And I think that it can cause some other problem in my game.

So, I tried to do the opposite : leave the player as true pawn and set the AI as a new object type (named AIPawn this time…).
BUT now the AI is not moving anymore… I am going crazy.

So, I tried almost everything but can find the correct solution.

At the end, I leave everything as pawn and ignore collision for pawn, and add a new box collision inside the AI to block everything… Like this, the player have a collision with the AI.
BUT I have now some issues when AI do root motion (strange behaviour), it is a little issue so I keep things like this for the moment…

Do you have any other idea of what I can try to solve this problem that seems so simple at the beginning ?

Thank you for your time !
All the best

1 post - 1 participant