Import
XRHandMeshModel is an addon, and must be imported explicitly, see Installation#Addons.
import { XRHandMeshModel } from 'three/addons/webxr/XRHandMeshModel.js';
Constructor
new XRHandMeshModel( handModel : XRHandModel, controller : Group, path : string, handedness : XRHandedness, loader : Loader, onLoad : function )
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 |
onLoad |
A callback that is executed when a controller model has been loaded. |
Properties
.controller : Group
The WebXR controller.
.handModel : XRHandModel
The hand model.
Methods
.updateMesh()
Updates the mesh based on the tracked XR joints data.