bugfix(view): Recalculate Camera Area Constraints when toggling Control Bar or changing Pitch, FOV#2291
Conversation
…ol Bar or changing Pitch, FOV
Greptile Overview
|
| Filename | Overview |
|---|---|
| Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp | Adds m_cameraAreaConstraintsValid = false to invalidate camera constraints when viewport dimensions or camera properties change, ensuring constraints are recalculated properly |
| m_doingPitchCamera = false; | ||
| m_doingZoomCamera = false; | ||
| m_doingScriptedCameraLock = false; | ||
| // TheSuperHackers @fix Now recalculates the camera constraints because |
There was a problem hiding this comment.
Negative. A future change will remove the lines above. That is why it looks cramped right now.
This change recalculates the Camera Area Constraints when toggling the Control Bar or changing Camera Pitch or FOV. Right now Pitch and FOV can only be changed in Debug. But it will become available in Release in the future.
The Camera Area Constraints are responsible for binding the camera into the visible map area, preventing the player from scrolling into oblivion.