I’m using an ArcRotate camera, and I want to add an observer to when the scene is rotated (default ArcRotate behavior). The PointerDragBehavior can be added to a mesh, but it doesn’t appear to do anything when added to a camera, and throws an error if attached to the scene. PointerDragBehavior - Babylon.js Documentation
I’ve thought about adding a “full screen”(idk how to do this) invisible mesh and adding it to that, but that seems hacky, and I’d have to figure out how to pass other mouse events through.
There’s a mesh behavior that is pretty close to what I’m looking for, PointerDragBehavior, except it’s for dragging meshes instead of camera movement. I’m cribbing code from there.