Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-08 14:34:44 +0000
committerStijn Buys <ingar@osirion.org>2010-11-08 14:34:44 +0000
commitb7dc0938eb7d59f928bbcf2a3a4877a6f60940e5 (patch)
tree5b4b4353f2012fced4180072e0b0def8ba8d22db /src/model/model.h
parentb685a594ae43aa30173912c9fb1177d507ec5a08 (diff)
moved clear() from game::Game~ to core::GameServer~ (solves FIXME),
unified bounding box code into math::BoundingBox3f class
Diffstat (limited to 'src/model/model.h')
-rw-r--r--src/model/model.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/model/model.h b/src/model/model.h
index 287b0cf..9495285 100644
--- a/src/model/model.h
+++ b/src/model/model.h
@@ -101,14 +101,8 @@ public:
return model_particles;
}
- /// maximum values of the bounding box
- inline const math::Vector3f & maxbbox() const {
- return model_maxbbox;
- }
-
- /// minimum values of the bounding box
- inline const math::Vector3f & minbbox() const {
- return model_minbbox;
+ inline const math::BoundingBox3f & box() const {
+ return model_box;
}
/// engine sound loop for this model
@@ -156,8 +150,7 @@ public:
void set_origin(const math::Vector3f &origin);
math::Vector3f model_origin;
- math::Vector3f model_maxbbox;
- math::Vector3f model_minbbox;
+ math::BoundingBox3f model_box;
unsigned int model_enginesound;
unsigned int model_impulsesound;