Capítulo 634 de 859
Represents one of the hand model types XRHandModelFactory might produce depending on the selected profile. XRHandPrimitiveModel represents a hand with sphere or box primitives according to the selected primitive option.
import { XRHandPrimitiveModel } from 'three/addons/webxr/XRHandPrimitiveModel.js';
Constructor
| Signature |
|---|
new XRHandPrimitiveModel( handModel : XRHandModel, controller : Group, path : string, handedness : XRHandedness, options : XRHandPrimitiveModel~Options ) |
Properties
| Property | Description |
|---|---|
.controller : Group | The WebXR controller. |
.envMap : Texture | The model's environment map. |
.handModel : XRHandModel | The hand model. |
Methods
| Method | Description |
|---|---|
.updateMesh() | Updates the mesh based on the tracked XR joints data. |