StabilizedRay Class
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A ray whose position and direction are stabilized in a way similar to how gaze stabilization works in HoloLens.
The ray uses Anatolie Gavrulic's "DynamicExpDecay" filter to stabilize the ray this filter adjusts its smoothing factor based on the velocity of the filtered object
The formula is Y_smooted += βπ_π where γβπ_π=βπβγ0.5γ^(βπ/γHalflifeγ)
In code, LERP(signal, oldValue, POW(0.5, ABS(signal β oldValue) / hl)
public ref class StabilizedRay
public class StabilizedRay
type StabilizedRay = class
Public Class StabilizedRay
- Inheritance
-
StabilizedRay
Stabilized |
HalfLife closer to zero means lerp closer to one. |
Half |
Half life used for velocity decay calculations. |
Half |
Half life used for position decay calculations. |
Stabilized |
Computed stabilized direction. |
Stabilized |
Computed Stabilized position. |
Add |
Add sample to ray stabilizer. |
Dynamic |
Compute dynamic exponential coefficient. |
Dynamic |
Compute stabilized vector3 given a previously stabilized value, and a new sample, given a half life. |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |