I’m trying to create what I can best describe as a weighted cube. Essentially I have a cube object that the player can carry around, throw, stand on, etc. (Think companion cube from Portal but can be tossed).
All of the actions I can do with cube function fine. However, I’m having issues getting the physics on the cube to feel natural. By default my cube basically tumbles around like an empty cardboard box. It will go flying across the room if anything hits it and tumbles repeatedly when it is thrown. I’ve fixed some of this by overriding the mass of the cube and increasing that value. Now the throw is much more natural and the cube only goes the distance I want it to. I fixed some of the rotation issues by decreasing the Max Angular Velocity of the cube so it doesn’t tumble uncontrollably. However, I’m still having issues with the physics.
My current problem is if I’m carrying a cube and the held cube knocks another cube on the ground, the ground cube will get knocked across the room like it has no weight. If I toss a cube at another cube, this doesn’t happen. If as the player I push up against the cube it resists my push a bit and slowly tumbles over (although I’d prefer if it slid). I’m at a loss as to why this is happening or how to fix it.
I’m hoping that someone can give me an idea as to why a held cube applies so much force to cubes on the ground. I’m hoping that someone can give me some suggestions as to how to make the cube feel like it has some weight to it in all circumstances. And if anyone has suggestions as to how to make the cube slide when being pushed versus tumbling over, that would also be great. Any suggestions are appreciated.