How can you trap an object inside a box collision but player can walk through and in it?

So for more details. I am making a mp lobby for my puzzle game. I built a simple soccer area in that lobby. I want to trap the ball in the soccer field and allow the players move in it and through by using box collision but can not find any info on how. Any ideas? I want to make the ball stay inside the area meanwhile player can move.

1 Like

It’s a about Collision Filtering

Set the box to ignore Pawns:

If you have no static mesh walls, use collision boxes to surround the area.

2 Likes

Thanks a lot! I knew it is something like that but I lack the knowledge. I was trying to find a setting or something. Gonna dwell on it and try to make it happen first.

this time I set my collision to ignorepawn but my static mesh ball with physics still go throught it.

If in doubt, please post the collision settings of the colliding elements.

will do when I get the chance. Thanx :slight_smile:

1 Like


this is the collision

and this is the ball

The wall does not block objects simulating physics. Set the preset to custom, compare to the screenshot I posted.

I love you man! It worked :smiley: Thank you so much.

1 Like