API reference
API reference
Select your platform
No SDKs available
No versions available

OVRGLTFAnimatinonNode Class

Helper class specifically used for animating buttons, triggers, and thumbsticks on GLTF (GL Transmission Format) controller models loaded from the Meta Quest Runtime.
Controller input is passed in from which is then used to update the poses of each coresponding button, trigger, or thumbstick on the controller models. These animation functions are used specifically for the Controller Models loaded from the Meta Quest Runtime. We do not recommended using these functions any other GLTF models.

Member Functions

Creates a new OVRGLTFAnimationNode object which is used to animate a controller button, trigger, or joystick.
Parameters
inputNodeType
Input node type used to specify if this node is a button, trigger, or joystick.
gameObj
Game object associated with the node being animated.
morphTargetHandler
The morpph target data that is required for animating this node.
Adds an animation channel to this animation node.
Check the GLTF animation channel section in the GLTF 2.0 specification page for more information.
Parameters
channel
The JSON node containing data for the animation channel.
samplers
The JSON node containing GLTF samplers.
dataAccessor
The OVRGLTFAccessor object for retriving animation data.
Updates the pose of a controller button object based on button down state.
Parameters
down
If the button is being pressed.
Updates the pose of a object based on a float value.
Parameters
t
The floating point value ranging from 0.0f to 1.0f.
applyDeadZone
If a dead zone should be applied to the animation. The object will not move until the dead zone threshold is exceeded.
Updates the pose of a controller joystick object based on the joystick's x and y position.
Parameters
joystick
The floating point value of the joystick's x and y position.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon