Capítulo 582 de 859
Represents an Oculus hand model.
import { OculusHandModel } from 'three/addons/webxr/OculusHandModel.js';
Constructor
| Signature |
|---|
new OculusHandModel( controller : Group, loader : Loader, onLoad : function ) |
Properties
| Property | Description |
|---|---|
.controller : Group | The hand controller. |
.envMap : Texture | The model's environment map. |
.loader : Loader | A loader that is used to load hand models. |
.mesh : Mesh | The model mesh. |
.motionController : MotionController | The motion controller. |
.onLoad : function | A callback that is executed when a hand model has been loaded. |
.path : string | The path to the model repository. |
Methods
| Method | Description |
|---|---|
.checkButton( button : Object ) | Executed actions depending on the interaction state with the given button. |
.getPointerPosition() : Vector3 | Returns the pointer position which is the position of the index finger tip. |
.intersectBoxObject( boxObject : Mesh ) : boolean | Returns true if the current pointer position (the index finger tip) intersections with the given box object. |
.updateMatrixWorld( force : boolean ) | Overwritten with a custom implementation. Makes sure the motion controller updates the mesh. |