Show / Hide Table of Contents

    Class SteamVR_HistoryBuffer

    Inheritance
    System.Object
    SteamVR_RingBuffer<SteamVR_HistoryStep>
    SteamVR_HistoryBuffer
    Inherited Members
    SteamVR_RingBuffer<SteamVR_HistoryStep>.buffer
    SteamVR_RingBuffer<SteamVR_HistoryStep>.currentIndex
    SteamVR_RingBuffer<SteamVR_HistoryStep>.lastElement
    SteamVR_RingBuffer<SteamVR_HistoryStep>.Add(SteamVR_HistoryStep)
    SteamVR_RingBuffer<SteamVR_HistoryStep>.StepForward()
    SteamVR_RingBuffer<SteamVR_HistoryStep>.GetAtIndex(Int32)
    SteamVR_RingBuffer<SteamVR_HistoryStep>.GetLast()
    SteamVR_RingBuffer<SteamVR_HistoryStep>.GetLastIndex()
    SteamVR_RingBuffer<SteamVR_HistoryStep>.Clear()
    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)
    Namespace: Valve.VR
    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
    Type Name Description
    SteamVR_HistoryStep step
    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
    In This Article
    • Constructors
      • SteamVR_HistoryBuffer(Int32)
    • Methods
      • GetAverageVelocities(out Vector3, out Vector3, Int32, Int32)
      • GetTopVelocity(Int32, Int32)
      • GetVelocityMagnitudeTrend(Int32, Int32)
      • IsValid(SteamVR_HistoryStep)
      • Update(Vector3, Quaternion, Vector3, Vector3)
    Back to top Copyright (c) Valve Corporation, All rights reserved.