How to set a physics actor not to be pushed by the player?

I have a static mesh which simulates physics. It is affected by the gravity, also means that it can be pushed by any other solid actors. However, what i want is: It is affected by the gravity, but cannot be moved(pushed) by the player. Is that possible?

I tried to increase the mass. I scaled the mass to infinite but still not work. Increasing the density also not work.

I set my Mass scale to 1000 and it worked for me without changing any other details.

there is other way:-

1- select your static mesh

2-go to collision category

3-for collision present , set it to custom

4-make pawn to be ignored

but the problem it will not block your way, it will bypass your player, which means u will overlap it and continue walking. But I think you can fix this using blueprint by actor overlap event.

also u can make a simple trigger to disable the static mesh physics when your player over lap it, and so on

it could be perfect way to do that, so let’s pray for one of the staff confirm this issue .

best of luck

2 Likes

IT WORKED!!! I got rid of this by setting the object response: pawn to ignore and it worked perfectly fine. Thanks bro :slight_smile:

you are most welcome, bro

This is how i did it, with the 3rd person example and an actor cube.