Skip to content
Discussion options

You must be logged in to vote

Just want to share the fix that I figured out :D

At the end of my switchToOrthographicCamera function I do this:

controls.mouseButtons.wheel = CameraControls.ACTION.ZOOM;
controls.touches.two = CameraControls.ACTION.TOUCH_ZOOM_TRUCK;
controls.touches.three = CameraControls.ACTION.TOUCH_ZOOM_TRUCK;
controls.dollySpeed = 5; // this is optional, this makes the orthographic camera zoom faster because for me it turned out to zoom slower by default

At the end of my switchToPerspectiveCamera function I do this:

controls.mouseButtons.wheel = CameraControls.ACTION.DOLLY;
controls.touches.two = CameraControls.ACTION.TOUCH_DOLLY_TRUCK;
controls.touches.three = CameraControls.ACTION.TOUCH_DOLLY_TRUC…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SelfMade2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant