@@ -226,7 +226,7 @@ class W3DView : public View, public SubsystemInterface
226226 virtual void set3DWireFrameMode (Bool enable); // /<enables custom wireframe rendering of 3D viewport
227227
228228 Bool updateCameraMovements (void );
229- virtual void forceCameraConstraintRecalc (void ) { calcCameraConstraints (); }
229+ virtual void forceCameraAreaConstraintRecalc (void ) { calcCameraAreaConstraints (); }
230230
231231 virtual void setGuardBandBias ( const Coord2D *gb ) { m_guardBandBias.x = gb->x ; m_guardBandBias.y = gb->y ; }
232232
@@ -276,12 +276,13 @@ class W3DView : public View, public SubsystemInterface
276276
277277 Real m_groundLevel; // /< height of ground.
278278
279- Region2D m_cameraConstraint; // /< m_pos should be constrained to be within this area
280- Bool m_cameraConstraintValid; // /< if f, recalc cam constraints
279+ Region2D m_cameraAreaConstraints; // /< Camera should be constrained to be within this area
280+ Bool m_cameraAreaConstraintsValid; // /< If false, recalculates the camera area constraints in the next render update
281281
282282 void setCameraTransform ( void ); // /< set the transform matrix of m_3DCamera, based on m_pos & m_angle
283- void buildCameraTransform ( Matrix3D *transform ) ; // /< calculate (but do not set) the transform matrix of m_3DCamera, based on m_pos & m_angle
284- void calcCameraConstraints () ; // /< recalc m_cameraConstraint
283+ void buildCameraTransform ( Matrix3D *transform ); // /< calculate (but do not set) the transform matrix of m_3DCamera, based on m_pos & m_angle
284+ void calcCameraAreaConstraints (); // /< Recalculates the camera area constraints
285+ Bool isWithinCameraHeightConstraints () const ;
285286 void moveAlongWaypointPath (Real milliseconds); // /< Move camera along path.
286287 void getPickRay (const ICoord2D *screen, Vector3 *rayStart, Vector3 *rayEnd); // /<returns a line segment (ray) originating at the given screen position
287288 void setupWaypointPath (Bool orient); // /< Calculates distances & angles for moving along a waypoint path.
0 commit comments