Represents one of the hand model types XRHandModelFactory might produce depending on the selected profile. XRHandMeshModel represents a hand with a custom asset.
XRHandMeshModel is an addon, and must be imported explicitly, see Installation#Addons.
import { XRHandMeshModel } from 'three/addons/webxr/XRHandMeshModel.js';
Constructs a new XR hand mesh model.
handModel
The hand model.
controller
The WebXR controller.
path
The model path.
handedness
The handedness of the XR input source.
loader
The loader. If not provided, an instance of GLTFLoader will be used to load models.
Default is null.
onLoad
A callback that is executed when a controller model has been loaded.
Default is null.
An array of bones representing the bones of the hand skeleton.
The WebXR controller.
The hand model.
Updates the mesh based on the tracked XR joints data.