data-orbital
<mr-app data-orbital="mode:true; targetPos:0 2 3"> ... </mr-app>
Orbital state can be attached to an mr-app
using data-orbital
.:
data-orbital
Specifies the orbital setup.
mode
: true/false- default:
false
- default:
targetPos
: the position that the orbital camera/user will rotate around in the 3D scene.- default:
0 0 0
- default:
Enables just the use of orbital controls. Though this feature is already enabled as part of debug=true
, we also allow a specific flag for it for the cases where you just want to look closer at something more easily without all the additional overhead of full debugging.
It works without the requirement of the =+
keypress (unlike the debug=true
case).
Note if both orbital
and debug
are set to true
, the orbital
will take priority, meaning you still wont have to use the =+
keypress for it to work. The rest of debug
will still work as expected.
Orbital Control 3D toggling:
- rotate the scene with left mouse drag
- pan the scene with right mouse drag
- zoom with the mouse wheel
Try it out below!