s&box docs
API ReferenceSandbox.VR

public class Sandbox.VR.VRTrackedObject : Sandbox.Component

Updates this GameObject's transform based on a given tracked object (e.g. left controller, HMD).

Constructors

Showing 1 constructors

Methods

Showing 2 methods

protected virtual void OnPreRender()

protected virtual void OnUpdate()

Properties

Showing 4 properties

public Sandbox.VR.VRTrackedObject.PoseTypes Sandbox.VR.VRTrackedObject.PoseType { get; set; }

Which pose type to use (only applies to hand controllers, not the head). Grip is centered on the palm, Aim points forward for aiming/pointing.

public bool Sandbox.VR.VRTrackedObject.UseRelativeTransform { get; set; }

If this is checked, then the transform used will be relative to the VR anchor (rather than an absolute world position).

Metadata

FieldValue
NamespaceSandbox.VR
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.VR.VRTrackedObject

On this page