Inheritence

Summary

Represents a VR controller, along with its transform, velocity, and inputs.

Properties

ButtonA The primary button on this controller (Usually A, can be X for Oculus Touch)
ButtonB The secondary button on this controller (Usually B, can be Y for Oculus Touch)
Grip The grip input on this controller
IsHandTracked Is this controller currently being represented using full hand tracking?
Joystick The primary joystick input on this controller
JoystickPress The primary joystick press on this controller
Transform
Trigger The trigger input on this controller

Methods

<Clone>$
GetFingerCurl Get the skeletal value (from 0 to 1) of a specified finger curl index.
GetFingerSplay Get the skeletal value (from 0 to 1) of a specified finger splay index.
GetFingerValue Get the skeletal value (from 0 to 1) of a specified Sandbox.VR.FingerValue - includes curl and splay.
GetJointDataobsolete
GetJoints Returns joint data for a specific motion range.
GetModel Retrieves or creates a cached model that can be used to render this controller.
StopAllHaptics Stops all rumble and haptic events on this controller.
StopAllVibrations Stop all vibration events on this controller.
TriggerHaptics Trigger a vibration based on a predefined Sandbox.HapticPattern. All Sandbox.HapticPatterns are normalized (start at 0, peak at 1).
TriggerHapticVibrationobsolete Triggers a haptic vibration event on the controller for this hand.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.