worked on 3d models within map

adjusted grid factory
adjusted nav mesh factory
minoor changes/fixes
new helper classes
refactoring
This commit is contained in:
2018-04-03 14:55:59 +02:00
parent f3b6155157
commit 1c2081d406
25 changed files with 620 additions and 93 deletions

View File

@@ -54,6 +54,9 @@ public:
/** get the bbox's maximum */
const Point3& getMax() const {return p2;}
/** get the bbox's size */
const Point3 getSize() const {return p2-p1;}
/** equal? */
bool operator == (const BBox3& o) const {
return (p1.x == o.p1.x) &&
@@ -86,11 +89,11 @@ public:
p2 += p; // increase maximum
}
/** set both, min/max z to the same value */
void setZ(const float z) {
p1.z = z;
p2.z = z;
}
/** set both, min/max z to the same value */
void setZ(const float z) {
p1.z = z;
p2.z = z;
}
/** does the bbox contain the given point? */
bool contains(const Point3& p) const {