gravity and grenade velocity
#31
Much simpler. There are no units, really.

// fake physics for player ents to create _the_ cube movement (tm)
, for bouncers however
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;
Still, most of the physics were just
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.
Thanks given by:


Messages In This Thread
gravity and grenade velocity - by Kush_Slayer - 08 Apr 11, 02:12AM
RE: gravity and grenade velocity - by Gibstick - 08 Apr 11, 02:15AM
RE: gravity and grenade velocity - by Brahma - 08 Apr 11, 02:35AM
RE: gravity and grenade velocity - by VenteX - 08 Apr 11, 04:13PM
RE: gravity and grenade velocity - by vern - 08 Apr 11, 05:30PM
RE: gravity and grenade velocity - by Lantry - 08 Apr 11, 10:12PM
RE: gravity and grenade velocity - by Brahma - 09 Apr 11, 01:32AM
RE: gravity and grenade velocity - by Lantry - 09 Apr 11, 01:32AM
RE: gravity and grenade velocity - by Mael - 09 Apr 11, 02:13AM
RE: gravity and grenade velocity - by Gibstick - 09 Apr 11, 02:34AM
RE: gravity and grenade velocity - by Brahma - 09 Apr 11, 03:43AM
RE: gravity and grenade velocity - by Viper - 09 Apr 11, 04:39AM
RE: gravity and grenade velocity - by Frogulis - 09 Apr 11, 05:11AM
RE: gravity and grenade velocity - by Mael - 09 Apr 11, 06:32AM
RE: gravity and grenade velocity - by makkE - 09 Apr 11, 08:29PM
RE: gravity and grenade velocity - by VenteX - 09 Apr 11, 09:24PM
RE: gravity and grenade velocity - by Mael - 09 Apr 11, 10:53PM
RE: gravity and grenade velocity - by Lantry - 10 Apr 11, 01:13AM
RE: gravity and grenade velocity - by Mael - 10 Apr 11, 03:16AM
RE: gravity and grenade velocity - by Brahma - 10 Apr 11, 05:47AM
RE: gravity and grenade velocity - by tempest - 10 Apr 11, 06:45PM
RE: gravity and grenade velocity - by Brahma - 10 Apr 11, 07:22PM