Much simpler. There are no units, really.
, for bouncers however
Still, most of the physics were just
Offtopic request to devs: please agree on whether you use spaces or tabs in the source code.
[SELECT ALL] Code:
// fake physics for player ents to create _the_ cube movement (tm)
[SELECT ALL] Code:
const float CUBES_PER_METER = 4; // assumes 4 cubes make up 1 meter
const float BOUNCE_MASS = 0.5f; // sane default mass of 0.5 kg
const float GRAVITY = BOUNCE_MASS*9.81f/CUBES_PER_METER/1000.0f;
bounce->vel.z -= GRAVITY*curtime;
[SELECT ALL] Code:
invented on the fly and simply tweaked until
// they "felt right", and have no basis in reality.
Offtopic request to devs: please agree on whether you use spaces or tabs in the source code.