For a simple example of my problem, I’ll use the physics tutorial code, but change:
floor_phy = new RigidBodyControl(0.0f);
floor_phy = new RigidBodyControl(-0.01f);
The floor fell down. I assumed it’s a weight issue, since the tutorial floor supports a bunch of bricks, so I changed it to:
floor_phy = new RigidBodyControl(-100000.0f);
Obviously, with such a large negative weight, the floor should shoot up like a rocket, but instead it simply falls down like before.
This leads to two questions:
1 - is negative mass supported at all?
2 - how can I implement a platform that goes up and can carry other objects on it without caring about their mass, but still has physics? I was thinking about perhaps checking mass of colliding objects and offset for it, but I’m not sure how the physics engine would cope with that.
More specifically, imagine a bunch of platforms floating up like bubbles in water, but there are objects falling down as well - with gravity, like different size of sand thrown into the glass. Player has to jump from one flake to another if the one he’s standing on is about to collide with falling object, else the platform will flip or tilt from collision and loose the ability to support the player. sometimes permanently, sometimes just until settling back.