[#42][Doc] adjust documentation, fix trackball camera radius issue
Before: If more than one trackball camera controller is added to your application, changing the m_radius variable via scroll event would lead to adjusting the radius for all cameras attached to the trackball camera controller. After: Before updating the radius, the m_radius variable is changed in respect to the current distance from the camera to its center point. This enables handling all cameras with attached trackball camera controller separately.
Showing
- modules/camera/include/vkcv/camera/Camera.hpp 9 additions, 9 deletionsmodules/camera/include/vkcv/camera/Camera.hpp
- modules/camera/include/vkcv/camera/CameraController.hpp 7 additions, 2 deletionsmodules/camera/include/vkcv/camera/CameraController.hpp
- modules/camera/include/vkcv/camera/CameraManager.hpp 8 additions, 8 deletionsmodules/camera/include/vkcv/camera/CameraManager.hpp
- modules/camera/include/vkcv/camera/PilotCameraController.hpp 17 additions, 8 deletionsmodules/camera/include/vkcv/camera/PilotCameraController.hpp
- modules/camera/include/vkcv/camera/TrackballCameraController.hpp 22 additions, 12 deletions.../camera/include/vkcv/camera/TrackballCameraController.hpp
- modules/camera/src/vkcv/camera/TrackballCameraController.cpp 8 additions, 5 deletionsmodules/camera/src/vkcv/camera/TrackballCameraController.cpp
Loading
Please register or sign in to comment