API ReferenceSandbox.VR

VRTrackedObjectclass

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

objectComponentVRTrackedObject
Namespace
Sandbox.VR
Assembly
Sandbox.Engine
Declaration
public class Sandbox.VR.VRTrackedObject : Sandbox.Component

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

protected virtual void OnPreRender()PROTECTEDVIRTUAL

Returns:void

protected virtual void OnUpdate()PROTECTEDVIRTUALPER-FRAME

Returns:void

Properties4

Showing 4 properties

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

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.

Returns:PoseTypes

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

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

Returns:bool

On this page