Class SteamVR_HistoryBuffer
Inheritance
System.Object
SteamVR_HistoryBuffer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Assembly-CSharp.dll
Syntax
public class SteamVR_HistoryBuffer : SteamVR_RingBuffer<SteamVR_HistoryStep>
Constructors
SteamVR_HistoryBuffer(Int32)
Declaration
public SteamVR_HistoryBuffer(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Methods
GetAverageVelocities(out Vector3, out Vector3, Int32, Int32)
Declaration
public void GetAverageVelocities(out Vector3 velocity, out Vector3 angularVelocity, int forFrames, int startFrame = -1)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
velocity |
|
UnityEngine.Vector3 |
angularVelocity |
|
System.Int32 |
forFrames |
|
System.Int32 |
startFrame |
|
GetTopVelocity(Int32, Int32)
Declaration
public int GetTopVelocity(int forFrames, int addFrames = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
forFrames |
|
System.Int32 |
addFrames |
|
Returns
Type |
Description |
System.Int32 |
|
GetVelocityMagnitudeTrend(Int32, Int32)
Declaration
public float GetVelocityMagnitudeTrend(int toIndex = -1, int fromIndex = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
toIndex |
|
System.Int32 |
fromIndex |
|
Returns
Type |
Description |
System.Single |
|
IsValid(SteamVR_HistoryStep)
Declaration
public bool IsValid(SteamVR_HistoryStep step)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Update(Vector3, Quaternion, Vector3, Vector3)
Declaration
public void Update(Vector3 position, Quaternion rotation, Vector3 velocity, Vector3 angularVelocity)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
position |
|
UnityEngine.Quaternion |
rotation |
|
UnityEngine.Vector3 |
velocity |
|
UnityEngine.Vector3 |
angularVelocity |
|