Import
XRHandPrimitiveModel is an addon, and must be imported explicitly, see Installation#Addons.
import { XRHandPrimitiveModel } from 'three/addons/webxr/XRHandPrimitiveModel.js';
Constructor
new XRHandPrimitiveModel( handModel : XRHandModel, controller : Group, path : string, handedness : XRHandedness, options : XRHandPrimitiveModel~Options )
Constructs a new XR hand primitive model.
| handModel |
The hand model. |
| controller |
The WebXR controller. |
| path |
The model path. |
| handedness |
The handedness of the XR input source. |
| options |
The model options. |
Properties
.controller : Group
The WebXR controller.
.handModel : XRHandModel
The hand model.
Methods
.updateMesh()
Updates the mesh based on the tracked XR joints data.
Type Definitions
.Options
Constructor options of XRHandPrimitiveModel.
|
primitive
'box' | 'sphere' |
The primitive type. |