16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 10:29:19 +02:00

build 171027: bounding area calculation fixes, novice ui obstacle indicator, minor traction render enhancement, shadow calculations for tall enough platforms

This commit is contained in:
tmj-fstate
2017-10-28 00:56:10 +02:00
parent d8c3b5caf4
commit 4ce975a656
23 changed files with 334 additions and 138 deletions

View File

@@ -288,10 +288,12 @@ public:
return m_name; }
void
location( glm::dvec3 const Location ) {
m_location = Location; }
m_area.center = Location; }
glm::dvec3 const &
location() const {
return m_location; };
return m_area.center; };
float const &
radius();
void
visible( bool const Visible ) {
m_visible = Visible; }
@@ -300,8 +302,11 @@ public:
return m_visible; }
protected:
// methods
// radius() subclass details, calculates node's bounding radius
virtual void radius_();
// members
glm::dvec3 m_location;
scene::bounding_area m_area;
bool m_visible { true };
double m_rangesquaredmin { 0.0 }; // visibility range, min
double m_rangesquaredmax { 0.0 }; // visibility range, max