Class ShakeVelocityTracker
Helper class that tracks an object's shaking velocity over a period of time This is calculated by distance traveled vs. total range of motion
Inherited Members
Namespace: Unity.EditorXR.Helpers
Assembly: solution.dll
Syntax
[Serializable]
public class ShakeVelocityTracker
Properties
| Name | Description |
|---|---|
| shakeAxis | The direction this object is shaking in this frame |
| shakeStrength | How powerful of a shake an object is experiencing this frame |
Methods
| Name | Description |
|---|---|
| ForceChangePosition(Vector3) | Clear the buffer and set a new position |
| Initialize(Vector3) | Initializes the shake tracker's history storage and stabilizes it at its current position |
| Update(Vector3, float) | Based on new position data, calculates how much shake this object is currently experiencing |