FollowingCameraConfiguration.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/EntityId.h>
  10. #include <AzCore/RTTI/RTTI.h>
  11. #include <AzCore/Serialization/SerializeContext.h>
  12. #include <AzCore/std/containers/vector.h>
  13. #include <AzCore/std/string/string.h>
  14. namespace ROS2
  15. {
  16. //! A structure capturing configuration of Following Camera.
  17. struct FollowingCameraConfiguration
  18. {
  19. AZ_TYPE_INFO(FollowingCameraConfiguration, "{605fec3d-0152-44f3-b885-669cdcf201eb}");
  20. static void Reflect(AZ::ReflectContext* context);
  21. AZStd::vector<AZ::EntityId> m_predefinedViews; //!< List of predefined views.
  22. int m_defaultView{ 0 }; //!< Index of the default view.
  23. int m_smoothingBuffer = 30; //!< Number of past transforms used to smooth, larger value gives smoother result, but more lag
  24. float m_zoomSpeed = 0.06f; //!< Speed of zooming
  25. float m_rotationSpeed = 0.05f; //!< Rotation Speed around the target
  26. bool m_lockZAxis = false; //!< Lock the Z axis of the camera
  27. const float m_opticalAxisTranslationMin = 0.0f; //!< Minimum zoom distance
  28. };
  29. } // namespace ROS2