Unpossessed pawn collision issues

Hello,

I have an issue with pawn not having collision detection. For exemple I have 1 main pawn, and a second one. I can move from one to an other with a key.

But if I unpossess one of the pawn while inside a collision box, unreal think the pawn left the box (while it’s visually still inside) and fire an end overlap event.

Same for moving platform, for example elevators, if I unpossess my second pawn and move the platform, it will pass through the character.

(I did something with attaching the character to the moving platform, but when I possess once again this character, he jump like he is trapped inside the geometry).

I can’t seem to find a solution to this problem anywhere else, because most people have only one active pawn controller.

I can only speculate but it is possible that the movement/collision components in the character are disabled when it is unpossessed.

Try adding another collision to the character. One that is not originally part of it and switch it on when unpossessing.

You can also try possessing the old character with an AIController that does nothing when you switch to a new character.

I’m shooting a bit in the dark here but do tell if you see any difference with any of the approaches.

Thank you for the answer. It’s quite an odd problem and it’s seem to be linked to the engine. I need to use a lot of tricks to sell the illusion.
AI controller can be a good idea actually, I’ll try that :slight_smile:

Hello @Dann_Ly ,Welcome to the forum.
If using an AIController doesn’t solve the issue, could you share your setup? That way I can try to replicate it in my project and look for a possible solution to the collision problem.

This is correct. An unpossessed character (character class w/CMC) has absolutely zero interaction with the world. The Capsule component goes dormant and moment mode is set to none.

As you noted possessing with an AI controller is the proper approach when swapping between pawns. With overlaps there may be a need to re-sweep do to unpossession ending overlap.

Possession should be handled by the Game mode.
Game world will need a Nav Mesh Bounds Volume as well.

We do a bunch of character switching in our apps. We have all characters ignore collision with all other characters at BeginPlay(). Pretty simple way to do it.

By default characters do collide with unpossessed characters.