I need an orthographic camera with a custom input manager. It has to function similar to the orthographic view in blender, but I only need zoom and pan. I am new to both BabylonJS and JS/TS, so I have been struggling with pointer events. I have approached this in two ways, one is configuring custom controls for a FreeCamera, and the other is simply detachControl and handle pointer events(playground link for both is below). Issue is, I need this for a multiplatform app, so I need to handle touch input as wall, pan with two fingers and zoom on pinch. Please can anyone show me how can I achieve that. Preferably through custom inputs. I can only get it to zoom using custom controls.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Customising camera doesn't seem to work for me | 4 | 671 | July 16, 2020 | |
Custom Camera Input: Get touch/pointer events with the mouse | 1 | 612 | March 24, 2021 | |
Zoom in/ Zoom out for orthographic view | 6 | 1124 | June 13, 2022 | |
FreeCameraKeyboardWalkInput example/docs not flanging with the actual BabylonJS API? | 4 | 586 | June 28, 2021 | |
How to create plot-like camera controls? | 4 | 1377 | February 21, 2020 |