Stop carriable objects from clipping through walls?

I’ve implemented 2 different ways of handling objects that can be grabbed.

One of them uses a Physics Constraint Component and the other one is using a Physics Spring Arm

Physics Spring Arm seems to be able to handle collisions pretty well since, no matter the distance, the object will never clip through a wall. However this doesn’t seem to be the case with Physics Constraint Component.

The object will clip through objects and walls if the distance between the player and the object is extended. See the videos below;

Handling objects with Physics Spring Arm:

Handling objects with Physics Constraint Component:

I’ve tried using CCD and decreasing the strength on the linear motor but these options are just band-aid fixes since, if I extend the distance even more, the object will eventually clip through the wall.

Ideally I’m looking for a fix that uses a Physics Constraint Component and preferably stops these clippings no matter distance between the player and the object.

This is my current code for the Physics Constraint Component method:

Does anyone have any ideas?

I don’t have a good solution for you. I was however wondering why you want the feature to allow the user to keep an object held for such a long time? Usually if you get line of sighted for a few seconds, there is a function that automatically drops the object.

You could technically also freeze the object if the character can’t see it, making it active if the player returns to it again.

I know these aren’t solutions, but I hope it is somewhat helpful either way.

I just wanted to know if it was possible out of curiosity. And btw, you mentioned a function that would force drop the object, would you mind linking the documentation?

Hey man! How are you using the Spring arm component to grab objects? Are you just attaching them to the component? I How are you able to keep the Physics simulation? I have been trying to iumplement Physics Constraint and after that swithced to Physics Handle, which surprisingly dealt wit hcollision a bit better in many edgecases, but it still clips through walls, esspecially when I slam it againt the floor with high velocity. I was looking at the best Picking Up system for physics objects for a couple months now.