From d6e4c4e7c2b1e28961f1dfe2f25ef96ced60b21b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 17 Oct 2010 17:19:03 +0000 Subject: core bullet physics support, initial vstrafe support --- src/core/zone.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/zone.h') diff --git a/src/core/zone.h b/src/core/zone.h index 38a9298..f040939 100644 --- a/src/core/zone.h +++ b/src/core/zone.h @@ -19,6 +19,7 @@ class Zone; } #include "core/entity.h" +#include "core/physics.h" namespace core { @@ -140,6 +141,11 @@ public: /// remove an entity from this zone void remove(Entity *entity); + /// physics world for this zone + inline btDiscreteDynamicsWorld *physics() { + return zone_bullet_world; + } + private: unsigned int zone_id; @@ -149,6 +155,9 @@ private: static Registry zone_registry; Entity *zone_defaultview; + + btAxisSweep3 *zone_bullet_cache; + btDiscreteDynamicsWorld *zone_bullet_world; }; } -- cgit v1.2.3