Roblox Engine has poor physics collisions when grabbing

Hello, I’m Vis :wave:

So I’m basically creating a grab system similar to Amnesia Dark Descent’s grabbing system… the only issue is

ROBLOX PHYSICS SUCK

I’ve been using AlignPosition and AlignOrientation to kinda handle the issue of props not colliding with objects when I use their CFrame as a mover but that turned out to be a mistake since it’s worse than before and Parts keep having seizures and going through parts when I get close to them. I already have a solution that involves Raycasting, but I’m wondering if there’s any solution that doesn’t require any scripting.

Any help will be much appreciated :heart:

No idea what that is. Videos of what you’re trying to create would be appreciated.

you click E and an object is grabbed bringing it to a few studs from the camera making it look at the camera

1 Like

So you want the object to follow the camera, not the mouse or player?

I already got the system working, the part seizures and goes through other parts when getting close to them

I want a better solution than just using raycasts to script this issue out of the way

1 Like

Could you show a video of what you’re trying to make, as well as what you have so far?

lemme post it to streamable real quick

https://streamable.com/7wepo0

this is an early and testing version of the system that doesn’t include the AlignOrientation constraint, but I promise you on my life it’s not the AlignOrientation’s fault

I basically want it to not seizure and go through parts like that and just drag against parts

as I said, I already have a solution but I want something that doesn’t require scripting

What if you made the part denser while being dragged? Using CustomPhyiscalProperties. I don’t know exactly how it will react, also the AlignPosition would need more power to move the denser object.

I’ve already tried that and it doesn’t work

Well, I’ve seen a lot of games do it so it’s probably not a complicated solution. It must be some property of the AlignPosition that would you need to adjust.

1 Like

What if you just disabled collisions on the object when grabbing and re-enable when you let go?

I want it to drag and collide against stuff, another example is gmod physics gun grabbing

Could you show an example of this? It’s hard to know exactly what you’re going for.

Though it sounds like an issue that’d be easily resolved with raycasts.

This issue is probably happening when the object is trying to reach the location by force aka any means necessary, hence the weird shaking and behavior.

Using a raycast to reposition the grabbing point will mostly resolve this issue.

1 Like

yeah that was my idea, I don’t want to overcomplicate solutions though, so I was wondering if there was any other way to bypass this

also here’s a little reference, see how in gmod when you grab stuff it absolutely doesn’t clip through stuff unlike in roblox

https://streamable.com/j6ki2e

Maybe you could try messing with the max force since it’s what mainly determines the maximum amount of force used to get the object to a certain position. Lowering it might help with decreasing the issue but otherwise, you’re probably better off raycasting to make sure nothing goes wrong with the physics.

1 Like

I tested that out too and I assure you it doesn’t help at all. I guess I’m stuck using raycasts

1 Like