How to fix these weird physics?

I’m currently developing a game where the player can pick up objects, and stack them, but I’ve run into an issue with the physics. Whenever a player jumps on top of an object or run into one, the object gets flung. I don’t want this behavior because it makes stacking boxes to get on top of areas difficult. Here is a video of my problem:

Are there any ways to fix this?

6 Likes

Increase the weight of the object. Roblox models realistic physics, if you run into a cardboard box it will fly.

5 Likes

It’s less intense now, but there are still slight problems. I tried increasing the weight and increasing the friction but the physics are still not how I would want them to be.

It almost looks like it is glued to my player

2 Likes

Try increasing the friction of the box, or lowering the weight of the player!

3 Likes

How heavy is the box compared to the player? And also maybe increase the friction of the floor and decrease the friction of the player?

2 Likes

Try setting Elasticity to a very low number (or 0) or adding an external force to keep it in place stricter until picked up. 2nd option may have an impact on performance though

3 Likes

Thank you alot, this worked! :+1:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.