Patch - Improves camera controls and movement. - V14.5.33
Refactors camera input handling for smoother and more intuitive control. This change introduces a dedicated CameraInput structure and updates the camera class to use it for movement and rotation based on user input. It removes the old position class camera related logic and integrates mouse delta for precise rotation control and scroll wheel for speed adjustments. Updates ImGui layout to reflect the new size for the docked space.
This commit is contained in:
@@ -22,16 +22,10 @@ public:
|
||||
void GetRotation(float&, float&) const;
|
||||
void GetPosition(float&, float&, float&) const;
|
||||
|
||||
void TurnLeft(bool);
|
||||
void TurnRight(bool);
|
||||
void TurnMouse(float, float, float, bool);
|
||||
void MoveCamera(bool, bool, bool, bool, bool, bool, bool, bool, bool);
|
||||
|
||||
private:
|
||||
float m_frameTime;
|
||||
float m_rotationY, m_rotationX;
|
||||
float m_positionX, m_positionY, m_positionZ;
|
||||
float m_leftTurnSpeed, m_rightTurnSpeed, m_horizontalTurnSpeed, m_verticalTurnSpeed, m_cameraSpeed, m_speed;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user