Api Sandbox VR TrackedObject
class

TrackedObject

public class TrackedObject

Represents a physically tracked VR object with a transform

Properties

Name Type Description
Active Boolean Whether or not this object is currently accessible (if false, then the transform will not update).
Velocity Vector3 Local velocity of this object.
AngularVelocity Angles Local angular velocity of this object (degrees/s)
Transform virtual Transform The grip pose transform of this tracked object in world space (centered on palm/grip). This is the default transform used for hand positioning.
AimTransform virtual Transform The aim pose transform of this tracked object in world space (pointing forward). Use this for aiming, pointing, or ray casting.
Role TrackedDeviceRole Which part of the body this tracked object represents - waist, left shoulder, etc.
Type TrackedDeviceType What type of object this is - tracker, controller, etc.

Methods

virtual TrackedObject <Clone>$()
Assembly: Sandbox.Engine Namespace: Sandbox.VR Full Name: Sandbox.VR.TrackedObject