Skip to content

Commit c6c3f42

Browse files
committed
add some movement getters/setters to Camera
1 parent a7f4dbe commit c6c3f42

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples_tests/common/Camera.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ class Camera {
7474

7575
inline const nbl::core::vectorSIMDf& getBackupUpVector() const { return backupUpVector; }
7676

77+
inline const float getMoveSpeed() const { return moveSpeed; }
78+
79+
inline void setMoveSpeed(const float _moveSpeed) {
80+
moveSpeed = _moveSpeed;
81+
}
82+
83+
inline const float getRotateSpeed() const { return rotateSpeed; }
84+
85+
inline void setRotateSpeed(const float _rotateSpeed) {
86+
rotateSpeed = _rotateSpeed;
87+
}
88+
7789
inline void recomputeViewMatrix() {
7890
nbl::core::vectorSIMDf pos = position;
7991
nbl::core::vectorSIMDf localTarget = nbl::core::normalize(target - pos);

0 commit comments

Comments
 (0)