XRHandPrimitiveModel class

Represents one of the hand model types {@link XRHandModelFactory} might produce depending on the selected profile. XRHandPrimitiveModel represents a hand with sphere or box primitives according to the selected primitive option.

@three_import import { XRHandPrimitiveModel } from 'three/addons/webxr/XRHandPrimitiveModel.js';

Inheritance

Constructors

XRHandPrimitiveModel.new(XRHandModel handModel, WebXRController controller, String? path, String? handedness, Map<String, dynamic> options)
Constructs a new XR hand primitive model.

Properties

assetUrl String?
getter/setter pairinherited
components Map
getter/setter pairinherited
controller WebXRController
getter/setter pair
data → dynamic
@description Returns a subset of component data for simplified debugging
no setterinherited
envMap ↔ Texture?
getter/setter pair
gripSpace → dynamic
no setterinherited
handedness String?
getter/setter pair
handMesh ↔ InstancedMesh
getter/setter pair
handModel XRHandModel
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id ↔ dynamic
getter/setter pairinherited
joints List<String>
final
layoutDescription ↔ dynamic
getter/setter pairinherited
options Map<String, dynamic>
getter/setter pair
path String?
getter/setter pair
profile Map<String, dynamic>?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetRaySpace → dynamic
no setterinherited
xrInputSource XRInputSource?
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateFromGamepad() → void
@description Poll for updated data based on current gamepad state
inherited
updateMesh() → void
Updates the mesh based on the tracked XR joints data.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited