feat: add scene view fly controls
This commit is contained in:
@@ -91,6 +91,11 @@ public:
|
||||
SceneViewportCameraInputState controllerInput = {};
|
||||
controllerInput.viewportHeight = input.viewportSize.y;
|
||||
controllerInput.zoomDelta = input.hovered ? input.mouseWheel : 0.0f;
|
||||
controllerInput.deltaTime = input.deltaTime;
|
||||
controllerInput.moveForward = input.moveForward;
|
||||
controllerInput.moveRight = input.moveRight;
|
||||
controllerInput.moveUp = input.moveUp;
|
||||
controllerInput.fastMove = input.fastMove;
|
||||
|
||||
if (input.looking) {
|
||||
controllerInput.lookDeltaX = input.mouseDelta.x;
|
||||
|
||||
Reference in New Issue
Block a user