I have an inventory system that allow to drop the items that will spawn in front of the character and using physics and gravity will fall on the ground.
The problem with this system is that if I step on top of those items they will start freaking out and this affects also the FPS character. To be fair, I found a solution by disabling the query but there is a major issue doing so. This prevent me from interacting with the item again to pick it up using line trace.
I solved by disabling the physics and gravity after the item stops moving by checking the movement speed and if under 2 it will disable the physics and gravity
Note: This is a band aid solution to me considering that physics this way are completely disabled and while falling the item still can have issues if pushed by the player
Another solution I found is to disable the “Enable Physics Interaction” in the character movement component. But this will prevent you from being able to push objects in general. If you want to make a game that uses this feature this won’t be a good solution
Hello @MK_Studio. You can use the OnHit event in the actor to disable physics instead of checking velocity. You could also set up a collision profile and configure it to Overlap player object type (that is Pawn) but block the floor.
Take a look at this for reference:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.