Class BaseRayStabilizer
A base class for a stabilizer that takes an input position and rotation, and performs operations on them to stabilize, or smooth deltas, in the data.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Physics
Assembly: cs.temp.dll.dll
Syntax
public abstract class BaseRayStabilizer : IBaseRayStabilizer
Properties
StablePosition
The stabilized position.
Declaration
public abstract Vector3 StablePosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
StablePosition
The stabilized position.
Declaration
public abstract Vector3 StablePosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
StableRay
A ray representing the stable position and rotation
Declaration
public abstract Ray StableRay { get; }
Property Value
Type | Description |
---|---|
Ray |
StableRay
A ray representing the stable position and rotation
Declaration
public abstract Ray StableRay { get; }
Property Value
Type | Description |
---|---|
Ray |
StableRotation
The stabilized rotation.
Declaration
public abstract Quaternion StableRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
StableRotation
The stabilized rotation.
Declaration
public abstract Quaternion StableRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
Methods
UpdateStability(Vector3, Quaternion)
Call this each frame to smooth out changes to a position and rotation, if supported.
Declaration
public virtual void UpdateStability(Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | Input position to smooth. |
Quaternion | rotation | Input rotation to smooth. |
UpdateStability(Vector3, Quaternion)
Call this each frame to smooth out changes to a position and rotation, if supported.
Declaration
public virtual void UpdateStability(Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | Input position to smooth. |
Quaternion | rotation | Input rotation to smooth. |
UpdateStability(Vector3, Vector3)
Call this each frame to smooth out changes to a position and direction, if supported.
Declaration
public abstract void UpdateStability(Vector3 position, Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | Input position to smooth. |
Vector3 | direction | Input direction to smooth. |
UpdateStability(Vector3, Vector3)
Call this each frame to smooth out changes to a position and direction, if supported.
Declaration
public abstract void UpdateStability(Vector3 position, Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | Input position to smooth. |
Vector3 | direction | Input direction to smooth. |