OrbitControls.cs
Last updated
Last updated
When attached to the HologramCapture game object, OrbitControl allows the user to rotate, pan, zoom, and refocus with simple mouse / multitouch inputs.
Action | Mouse | Multitouch |
---|---|---|
Speed at which rotation occurs.
Rate at which rotation slows down upon release.
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.
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.
Speed at which panning occurs.
Rate at which panning slows down upon release.
Rate at which mouse zoom occurs.
Rate at which multitouch zoom occurs.
Rate at which zooming slows down upon release.
Minimum amount of distance (in pixels) required to travel to trigger zoom interaction. Helpful for not triggering zoom when user intends to translate.
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.
Minimum size Hologram Camera object can be due to zoom.
Maximum size Hologram Camera object can be due to zoom.
Animation curve describing the zoom behavior when a user refocuses.
Time it takes (in seconds) to execute animation when user refocuses.
Double click is ignored if the distance between two clicks (in pixels) exceeds this value.
Double tap is ignored if the distance between two taps (in pixels) exceeds this value.
Double click is ignored if the time between two clicks (in in seconds) exceeds this value.
Double tap is ignored if the time between two taps (in in seconds) exceeds this value.
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.
Optional remapping parameter for touch screen position for inaccurate touch events. The two values in this Vector2 are MinY and MaxY.
Optional remapping parameter for touch screen position for inaccurate touch events. The two values in this Vector2 are MinX and MaxX.
Rotate
Left Click + Drag
Touch + Drag
Pan
Right Click + Drag
Two-Finger Touch + Drag
Zoom
Scroll Wheel up
Pinch
Refocus
Double Click
Double Tap