X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=world.h;h=334420fbff9599d29012044e417b139dadf4be51;hp=451ad2f20b51e9a2b61640fd46f3e1794810df52;hb=e0d72a97bea6a4f2af3bf0fffefe428650bac8b4;hpb=07eafbfea8fc99eebc3af835d07d554ad2e30089 diff --git a/world.h b/world.h index 451ad2f2..334420fb 100644 --- a/world.h +++ b/world.h @@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MOVE_WORLDONLY 3 #define MOVE_HITMODEL 4 -#define AREA_GRID 64 +#define AREA_GRID 128 #define AREA_GRIDNODES (AREA_GRID * AREA_GRID) typedef struct link_s @@ -50,6 +50,9 @@ typedef struct world_physics_s int ode_iterations; // actual step (server frametime / ode_iterations) vec_t ode_step; + // stats + int ode_numobjects; // total objects cound + int ode_activeovjects; // active objects count // max velocity for a 1-unit radius object at current step to prevent // missed collisions vec_t ode_movelimit; @@ -115,9 +118,13 @@ void World_End(world_t *world); // this is called by SV_Physics void World_Physics_Frame(world_t *world, double frametime, double gravity); +// change physics properties of entity +struct prvm_edict_s; +struct edict_odefunc_s; +//void World_Physics_ApplyCmd(prvm_edict_s *ed, edict_odefunc_s *f); + // remove physics data from entity // this is called by entity removal -struct prvm_edict_s; void World_Physics_RemoveFromEntity(world_t *world, struct prvm_edict_s *ed); void World_Physics_RemoveJointFromEntity(world_t *world, struct prvm_edict_s *ed);