OrbitControls_v3 Op
rotate your object by clicking and dragging the mouse
Summary (oneliner)
Adds mouse-interactivity to your patch. After you added the OrbitControls-op you can rotate the viewport my dragging with the mouse and zoom in / out using the mouse wheel.
When upgrading from an old version: add +2 to your initial radius to get the same distance!
- Ops.Gl.Matrix.OrbitControls_v3
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Orbitcontrols Example
INPUT PORTS
Executes the op
Boundaries
Minimum distance to scroll in, once you hit that distance scrolling in has no effect
Initial Values
The starting point from where to look at the scene in the y-axis
The starting point from where to look at the scene in the x-axis
Interaction
OUTPUT PORTS
Triggers the next op
Patches using OrbitControls_v3
Changelog
improvement | reset now also resets position from panning | pandur - 2019-07-10 16:04 |
bugfix | Fix bug with zooming in was stopping too soon | pandur - 2024-04-10 11:10 |
bugfix | Fixed bug with initial "axis x" default value not being used properly | pandur - 2024-06-24 17:51 |
bugfix | fix with active toggle not working when value is false and it was never triggered before | pandur - 2024-08-13 17:46 |