beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Gl.Matrix.OrbitControls

OrbitControls
op id:eaf4f7ce-08a3-4d1b-b9f4-ebc0b7b1cde1
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.

doc

issues

youtube id

op collections: cameras  

collections

related ops

Inputs

render (Function)

Executes the op


Boundaries

min distance (Number)

Minimum distance to scroll in, once you hit that distance scrolling in has no effect


max distance (Number)

min rot y (Number)

max rot y (Number)

Initial Values

initial radius (Number)

initial axis y (Number)

The starting point from where to look at the scene in the y-axis


initial axis x (Number)

The starting point from where to look at the scene in the x-axis


Interaction

mul (Number)

Smoothness (Number)

Speed X (Number)

Speed Y (Number)

Active (boolean Number)

Allow Panning (boolean Number)

Allow Zooming (boolean Number)

Allow Rotation (boolean Number)

restricted (boolean Number)

Pointerlock (boolean Number)

hides cursor and allows mouse to move further than the window boundaries


Reset (Function)

Outputs

trigger (Function)

Triggers the next op


radius (Number)

Rot Y (Number)

Rot X (Number)

Orbit controls:

Using Ops.Gl.Matrix.OrbitControls you can easily navigate in a 3d world.

  • move the mouse while pressing the left button to rotate
  • move the mouse while pressing the right button to move
  • scroll / use the mouse wheel to zoom in and out


video tutorial:

Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using OrbitControls

Public Patches using OrbitControls