So my project is coming along nicely.
So nicely i decided to look into better camera control.
I’m using the Universal Camera. I want to be able to move it around the scene and view from any angle. Ideally i’d be able to do this with either just mouse or mobile touch. (Think Google Earth UI.)
So what’s missing? Basically i need another axis of motion.
When using mouse or touch the Universal Camera can pan left-right and up-down but not in-out.
My mouse has a scroll wheel… (Well actually, a touch pad emulating a scroll wheel…)
Looking in Babylon.js/src/Cameras/Inputs at master · BabylonJS/Babylon.js · GitHub it doesn’t look lie i’m missing anything (although i do notice version 4.2 will have keyboard control of 3 axis instead of just the current 2).
is there any appetite for me to do some refactoring?
Last time i ran into similar issues as this i created Babylon.js/BaseCameraPointersInput.ts at master · BabylonJS/Babylon.js · GitHub
With that as the base, getting multi touch working should be fairly straight forward.
This would probably replace both
freeCameraTouchInput.ts with a unified replacement but they are both much less complicated than
followCameraPointersInput.ts which i originally created
anyone got opinions / input / etc before i start?