Unity-Technologies / EditorXR

Author XR in XR
Other
928 stars 166 forks source link

Spatial menu reposition delay change (extend GazeDivergenceModule) #518

Closed dunity closed 5 years ago

dunity commented 5 years ago

Purpose of this PR

*When the user diverts their gaze from the already open SpatialMenu, extend the SpatialMenu's adaptive re-positioning wait duration to be longer than it previously was (around 2X longer now).

*Add functionality allowing for the rate at which the gaze velocity will return to the stable threshold value in the GazeDivergenceModule.

Testing status

Tested many times over while refining the now slower re-position value set for the SpatialMenu.

Technical risk

Low. These changes don't affect any existing implementations outside of the GazeDivergenceModule. Though at some point, the gaze divergence module should be extended to support per-implementer rates of gaze velocity speed scaling.

Comments to reviewers

You can tune the value that scales the adaptive re-position speed on the SpatialMenu prefab's SpatialMenuUI component