grenade gravity tweaks

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2094 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-05-24 08:00:11 +00:00
parent 97fdd618bc
commit f3f3177a7e
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -273,7 +273,8 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
else // apply gravity
{
const float CUBES_PER_METER = 4; // assumes 4 cubes make up 1 meter
const float GRAVITY = 9.81f/CUBES_PER_METER/1000.0f;
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;
}