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
public VRTrackedObject()
No results match this filter.
Methods
Showing 2 methods
protected virtual void OnPreRender()
protected virtual void OnUpdate()
No results match this filter.
Properties
Showing 4 properties
public Sandbox.VR.VRTrackedObject.PoseSources Sandbox.VR.VRTrackedObject.PoseSource { get; set; }
Which tracked object should we use to update the transform?
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 Sandbox.VR.VRTrackedObject.TrackingTypes Sandbox.VR.VRTrackedObject.TrackingType { get; set; }
Which parts of the transform should be updated? (eg. rotation, position)
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).
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.VR |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.VR.VRTrackedObject |