Looking Glass Documentation
Buy Looking GlassDiscord
  • Looking Glass User Guide
  • NEW! โœจLooking Glass Goโœจ
  • Displays
    • ๐Ÿ”ฎLooking Glass Go
      • โšกGet Started with Looking Glass Go
      • ๐Ÿ“ฑUsing the Go Mobile App
      • ๐Ÿ”†Liteformsโ„ข
      • ๐Ÿ–ฅ๏ธStandalone and Desktop Modes
      • ๐Ÿ”ŒPower and LED States
      • ๐Ÿช„Default Playlist
      • โญ๏ธWhat's Next?
      • ๐Ÿ‘œAccessories
      • โš™๏ธAdvanced Playlist Creation
      • โš™๏ธManual Firmware Update
      • โ“Common Troubleshooting Issues
    • ๐Ÿ”ฎLooking Glass 16" Light Field Displays
      • ๐Ÿช„Looking Glass 16" Light Field Display (Landscape)
      • ๐Ÿช„Looking Glass 16" Light Field Display (Portrait)
      • โ“Common Troubleshooting Issues
    • ๐Ÿ”ฎLooking Glass 32" Light Field Displays
      • ๐Ÿช„Looking Glass 32" Light Field Display (Landscape)
      • ๐Ÿช„Looking Glass 32" Light Field Display (Portrait)
      • โ“Common Troubleshooting Issues
    • ๐Ÿ”ฎLooking Glass 65" Light Field Display
    • ๐Ÿ”ฎLooking Glass Portrait
      • โšกGet Started with Looking Glass Portrait
      • ๐ŸŽ‡Demo Holograms
      • โ“Common Troubleshooting Issues
  • Software
    • ๐Ÿ“šOverview
    • ๐ŸŒ‰Looking Glass Bridge
      • โœจUsing Looking Glass Bridge
      • ๐ŸชŸDisplay Settings on Windows
      • ๐ŸŽDisplay Settings on macOS
      • ๐ŸงDisplay Settings on Linux
      • ๐Ÿ‘ทTroubleshooting
    • โš™๏ธLooking Glass Bridge SDK
      • ๐Ÿช›Web Application Integration
      • ๐Ÿ”ŒIntegrating Native Applications
      • ๐Ÿ““Native Function Reference
      • ๐ŸฆLooking Glass Core Migration Guide
    • ๐Ÿ”ŒUnity
      • โšกUsing Unity with Looking Glass
      • Setting up your Development Environment
      • Example Scenes
      • Prefabs
        • Hologram Camera
        • 3D Cursor
        • Dual Monitor Application
      • Script Reference
        • HologramCamera.cs
        • LKGDisplaySystem.cs
        • QuiltCapture.cs
        • Cursor3D.cs
        • OrbitControls.cs
        • BlockUploader.cs
        • MobileDMAController.cs
        • iOS Sample Scene Scripts
          • ChangeInteractionModality.cs
          • XYSlider.cs
          • XYSpotlight.cs
          • AudioRotateControl.cs
          • ModelController.cs
          • DemoIOSUIController.cs
          • PageHandler.cs
          • PageConnectHandler.cs
          • PageCalibrateHandler.cs
          • PageTestHandler.cs
          • DynamicAlcove.cs
      • Package Integrations
        • Built-in Render Pipeline Post-Processing
      • Developing for iOS
      • Depth of Field and Other Post-Processing Effects
      • Quilt Video Audio and Playback
      • Developing for Ultraleap Hand Tracking on Looking Glass
      • Looking Glass Pro (Legacy)
      • Additional Support
      • Change Log
    • ๐Ÿ“ฝ๏ธLooking Glass Studio
      • ๐Ÿ“šUsing Looking Glass Studio
      • ๐ŸŽฌHologram Video iOS App
      • RGB-D Photo / Video
      • Quilt Images / Video
      • iPhone Portrait Photos
      • Android Depth Photos
        • Samsung Portrait Mode
      • Light Field Photosets
      • Exporting Holograms
      • Troubleshooting
    • ๐Ÿ‘€Looking Glass Model Viewer
    • ๐ŸงŠLooking Glass Blocks
      • โœจConvert any image into a hologram
      • โฌ†๏ธUploading, editing and sharing Quilts
      • ๐ŸฅฝViewing your holograms on different platforms
    • ๐ŸŽจOther Creator Tools
      • ๐ŸนBlender
      • ๐Ÿ”ŒUnreal Engine
        • ๐Ÿ—’๏ธChange Log and Old Versions
        • ๐Ÿ’ฝInstalling the Unreal Engine plugin
        • ๐ŸŽฅUsing the Unreal Engine Plugin
          • Using the HoloPlay Capture
          • Exporting Quilt Images and Video with Sequencer
        • Accessing HoloPlay Data with Blueprint Scripting
        • Packaging the Project
        • Unreal Engine 4 (Legacy Support)
          • Unreal Engine 4 Quick Start
            • Using the HoloPlay Capture
            • Exporting Quilt Images and Video with Sequencer
      • ๐ŸŒWebXR
        • ๐Ÿ”ถPlayCanvas
        • 3๏ธโƒฃ3๏ธโƒฃ Three.JS
        • โš›๏ธReact-Three-Fiber
        • ๐ŸŒˆSpline
    • ๐ŸงชExperiments
      • ๐Ÿ”†Liteformsโ„ข
        • ๐ŸชŸGet Started on Windows
        • ๐ŸŽGet Started on MacOS
        • ๐Ÿง™Making Custom Liteforms
        • ๐ŸชConfigure Liteforms for Kiosk Setup
      • ๐Ÿ“ฝ๏ธMedia Encoder
        • โฉLooking Glass Media Encoder
    • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘Third Party Apps and Tools
      • ๐Ÿ—บ๏ธParaView
      • ๐Ÿ”ฌVTK (Visualization Toolkit)
      • ๐Ÿ—ก๏ธ3D Slicer
      • ๐Ÿ”ฉCommunity Made Tools & Projects
  • Key Concepts
    • ๐Ÿ”‘Hologram 101
      • ๐ŸŽ‰Making great holograms
      • ๐ŸŒŽHolograms in the real world
      • ๐Ÿ‘พHolograms, but virtual
    • ๐Ÿ”How does Looking Glass Work?
    • ๐Ÿ“ธVirtual Camera
    • ๐ŸงŠ3D Design Guidelines
      • Lighting
      • Post-Processing
      • Scene Composition
      • Materials & Textures
      • Performance
    • ๐Ÿ’กQuilts
      • ๐ŸŽฌQuilt Video Encoding
    • ๐Ÿ’กLight Fields
      • โšกLinear Light Field Capture
    • ๐Ÿ“ฝ๏ธFilming a Looking Glass
  • Tutorials
    • ๐Ÿ“ฑRunning Looking Glass Displays with iOS Devices
    • โ“‚๏ธCapturing Light Fields in Maya
    • ๐Ÿง‘โ€๐Ÿ”ฌUsing ShaderToy with Looking Glass
    • ๐ŸŽจSculpting with Adobe Medium and Looking Glass
    • ๐Ÿ”Turn Videogames Holographic with Refract
    • ๐Ÿ–๏ธBuilding with Leap Motion
  • Legacy
    • Legacy Hardware
      • ๐Ÿ”ปLooking Glass 8.9"
      • ๐Ÿ”ปLooking Glass 15.6"
      • ๐Ÿ”ปLooking Glass 8K
      • ๐Ÿ”ปLooking Glass 16"
      • ๐Ÿ”ปLooking Glass 32"
      • ๐Ÿ”ปLooking Glass Pro
    • Legacy Software
      • ๐Ÿ“ก3D Model Importer
        • 3D Model Importer App Guide
        • 3D Model Importer App Reference
      • ๐ŸŽญDiorama
        • Change Log
      • ๐ŸŽž๏ธDepth Recorder
      • ๐Ÿ“ธLightfield Photo App
      • ๐ŸLooking Glass Core Overview
      • ๐Ÿฝ๏ธLooking Glass Core SDK
        • C API Overview
          • HoloPlayCore.h
            • State Functions
            • General-Query-Functions
            • Device-Query-Functions
          • libHoloPlayCore.h
          • HoloPlayShaders.h
      • ๐Ÿ”ฐLooking Glass Core JS
        • API
          • HoloPlayCore.Client
          • HoloPlayCore.Message
          • HoloPlay Service Related
          • examples
  • ๐Ÿ’ฌContact Us
  • ๐Ÿ› ๏ธFAQ & Troubleshooting
Powered by GitBook

Follow us

  • Twitter
  • Instagram
  • LinkedIn
On this page
  • Controls
  • Fields & Properties
  • float rotateSpeed
  • float rotateDrag
  • float yMax
  • float yMin
  • float panSpeed
  • float panDrag
  • float mouseZoomSpeed
  • float multitouchZoomSpeed
  • float zoomDrag
  • float multitouchZoomThreshold
  • float multitouchMaxJump
  • float minCamSize
  • float maxCamSize
  • AnimationCurve refocusToPointCurve
  • float refocusToTime
  • float maxDistBetweenClickMouse
  • float maxDistBetweenClickTouch
  • float doubleClickTime
  • float doubleClickTimeTouch
  • UnityEngine.EventSystems.EventSystem eventSys
  • Vector2 multitouchRemapCursorY
  • Vector2 multitouchRemapCursorX

Was this helpful?

  1. Software
  2. Unity
  3. Script Reference

OrbitControls.cs

When attached to the HologramCapture game object, OrbitControl allows the user to rotate, pan, zoom, and refocus with simple mouse / multitouch inputs.

Controls

Action
Mouse
Multitouch

Rotate

Left Click + Drag

Touch + Drag

Pan

Right Click + Drag

Two-Finger Touch + Drag

Zoom

Scroll Wheel up

Pinch

Refocus

Double Click

Double Tap

Fields & Properties

float rotateSpeed

Speed at which rotation occurs.

float rotateDrag

Rate at which rotation slows down upon release.

float yMax

Maximum angle (in degrees) that rotation is permitted to see above the model. 90 means the Hologram Camera can be rotated to view from directly above, and 0 means it that no rotation above level is permitted.

float yMin

Minimum angle (in degrees) that rotation is permitted to see below the model. -90 means the Hologram Camera can be rotated to view from directly below, and 0 means it that no rotation below level is permitted.

float panSpeed

Speed at which panning occurs.

float panDrag

Rate at which panning slows down upon release.

float mouseZoomSpeed

Rate at which mouse zoom occurs.

float multitouchZoomSpeed

Rate at which multitouch zoom occurs.

float zoomDrag

Rate at which zooming slows down upon release.

float multitouchZoomThreshold

Minimum amount of distance (in pixels) required to travel to trigger zoom interaction. Helpful for not triggering zoom when user intends to translate.

float multitouchMaxJump

If the distance between the fingers changes by this much between frames, ignore zoom interaction. Helpful if multitouch is picking up too many touch points.

float minCamSize

Minimum size Hologram Camera object can be due to zoom.

float maxCamSize

Maximum size Hologram Camera object can be due to zoom.

AnimationCurve refocusToPointCurve

Animation curve describing the zoom behavior when a user refocuses.

float refocusToTime

Time it takes (in seconds) to execute animation when user refocuses.

float maxDistBetweenClickMouse

Double click is ignored if the distance between two clicks (in pixels) exceeds this value.

float maxDistBetweenClickTouch

Double tap is ignored if the distance between two taps (in pixels) exceeds this value.

float doubleClickTime

Double click is ignored if the time between two clicks (in in seconds) exceeds this value.

float doubleClickTimeTouch

Double tap is ignored if the time between two taps (in in seconds) exceeds this value.

UnityEngine.EventSystems.EventSystem eventSys

OrbitControl will activate any time clicks and taps happen, no matter where they occur. This can present problems with 2D interface elements. OrbitControl will ignore interactions on any event system associated to this variable.

Vector2 multitouchRemapCursorY

Optional remapping parameter for touch screen position for inaccurate touch events. The two values in this Vector2 are MinY and MaxY.

Vector2 multitouchRemapCursorX

Optional remapping parameter for touch screen position for inaccurate touch events. The two values in this Vector2 are MinX and MaxX.

PreviousCursor3D.csNextBlockUploader.cs

Last updated 4 months ago

Was this helpful?

๐Ÿ”Œ