I’m making a game where you play as a small dude who can move left and right and who carries boxes that fall from the sky. You have to stack these boxes as high as possible. Currently there’s a red box which represents the tiny-man/the player and a white box which is the box you want to catch. I simply added a rigid body and box collider to the white box. Then a box collider and move type script to the red box ( small dude ). The white box falls down onto the red box.
Now my question. When you move the red box, there’s no connection between the two other than the collision, it sits there but doesn’t stay there, so when I move the red box, the white box simply falls down.
I want to simulate as if the white box were laying on top of red box and less of the red box being in it’s way so that when I move the red box it doesn’t fall off unless I move too fast to the right or left simulating this stacking boxes effect.