fixed bounding volume issue
[laserbrain_demo] / src / object.h
index cc82d1b..3ffec1f 100644 (file)
@@ -12,12 +12,12 @@ class SceneNode;
 enum ObjType { OBJ_NULL, OBJ_MESH };
 
 class Object {
-private:
+protected:
        std::string name;
+       mutable AABox aabb;
 
 public:
        Material mtl;
-       //GeomObject *bvol;
        SceneNode *node;
 
        Object();
@@ -32,6 +32,8 @@ public:
 
        virtual void update(float dt = 0.0f);
        virtual void draw() const;
+
+       virtual const AABox &get_aabox() const;
 };
 
 #endif // OBJECT_H_