class VRController : TrackedObject

robot_2Generated
code_blocksInput

Description

The VRController class in the Sandbox.VR namespace represents a virtual reality controller, providing access to its transform, velocity, and various input mechanisms. It extends the TrackedObject class, offering additional functionality specific to VR controllers.

Members

Instance Members

Member NameSummary
GetModelRetrieves or creates a cached model that can be used to render this controller.
TriggerHapticVibrationObsolete. Use TriggerHaptics instead.
StopAllVibrationsStop all vibration events on this controller.
TriggerHapticsTriggers a haptic effect on the controller.
StopAllHapticsStops all rumble and haptic events on this controller.
GetJointsRetrieves joint data for the controller based on the specified motion range.
GetFingerValueGets the value of a specified finger.
GetFingerCurlGets the curl value of a specified finger index.
GetFingerSplayGets the splay value of a specified finger index.
GetJointDataObsolete. Please use GetJoints.
TransformGets the transform of the VR controller.
IsHandTrackedIndicates if the controller is currently being represented using full hand tracking.
TriggerThe trigger input on this controller.
GripThe grip input on this controller.
JoystickThe primary joystick input on this controller.
JoystickPressThe primary joystick press on this controller.
ButtonAThe primary button on this controller (Usually A, can be X for Oculus Touch).
ButtonBThe secondary button on this controller (Usually B, can be Y for Oculus Touch).