API ReferenceSandbox.VR

TrackedObjectclass

Represents a physically tracked VR object with a transform

objectTrackedObject
Namespace
Sandbox.VR
Assembly
Sandbox.Engine
Declaration
public class Sandbox.VR.TrackedObject

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

protected virtual bool PrintMembers(System.Text.StringBuilder builder)PROTECTEDVIRTUAL

ParameterTypeDescription
builderStringBuilder
Returns:bool

Properties8

Showing 8 properties

public bool Sandbox.VR.TrackedObject.Active { get; set; }PUBLICGETSET

Whether or not this object is currently accessible (if false, then the transform will not update).

Returns:bool

public virtual Transform Sandbox.VR.TrackedObject.AimTransform { get; set; }PUBLICVIRTUALGETSET

The aim pose transform of this tracked object in world space (pointing forward). Use this for aiming, pointing, or ray casting.

Returns:Transform

public Angles Sandbox.VR.TrackedObject.AngularVelocity { get; set; }PUBLICGETSET

Local angular velocity of this object (degrees/s)

Returns:Angles

protected virtual System.Type Sandbox.VR.TrackedObject.EqualityContract { get; set; }PROTECTEDVIRTUALGETSET

Returns:Type

public virtual Transform Sandbox.VR.TrackedObject.Transform { get; set; }PUBLICVIRTUALGETSET

The grip pose transform of this tracked object in world space (centered on palm/grip). This is the default transform used for hand positioning.

Returns:Transform

On this page