The default input for an ArcRotateCamera is left-click to rotate and right-click to pan. Is there an “easy” way of switching these over such that left-click pans, and right-click rotates?
Thanks!
The default input for an ArcRotateCamera is left-click to rotate and right-click to pan. Is there an “easy” way of switching these over such that left-click pans, and right-click rotates?
Thanks!
Adding @PolygonalSun
Hey @jdp1g09, when you call attachControls on your camera, if you also add a 0 for the panningMouseButton parameter, it should automatically swap them (PG Example):
// attachControl(noPreventDefault: boolean, useCtrlForPanning: boolean, panningMouseButton: number): void
camera.attachControl(canvas, true, false, 0);