Small camera updates (#1460, LYN-2315)

* add interpolation for goto position/orientation

* resize default camera look-at point
This commit is contained in:
Tom Hulton-Harrop
2021-06-22 12:53:20 +01:00
committed by GitHub
parent 706cf0e9c3
commit dc343e2b65
4 changed files with 44 additions and 9 deletions
@@ -30,6 +30,12 @@ namespace SandboxEditor
//! @param yaw Amount of yaw in radians.
SANDBOX_API void SetDefaultViewportCameraRotation(float pitch, float yaw);
//! Set the camera to interpolate to the given position and orientation.
//! @param position The new position of the camera.
//! @param pitch Amount of pitch in radians.
//! @param yaw Amount of yaw in radians.
SANDBOX_API void InterpolateDefaultViewportCameraToTransform(const AZ::Vector3& position, float pitch, float yaw);
//! Get the default viewport camera transform.
SANDBOX_API AZ::Transform GetDefaultViewportCameraTransform();
} // namespace SandboxEditor