Classes
Methods
attachToCamera(camera)
Attach it to the camera. It does not resize automatically, just sets the parent.
It does not automatically switch to another camera if active camera changes.
Parameters:
Name | Type | Description |
---|---|---|
camera |
currently active camera |
- Source:
attachToHud()
Attach it to the HUD. It does not resize automatically, just sets the parent.
Optionally also attaches handles to the hud, if they are active.
- Source:
detach(offsetopt)
Detach from whatever attached to, i.e. drop it where you stand.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
offset |
number |
<optional> |
this.position.z | how far away from the camera to drop it, defaults to current z position (assuming it's attached to HUD or camera) |
- Source:
dispose()
Clean up allocated resources
- Source:
isSelectableMesh()
XR pointer support
- Source:
removeHandles()
Removes manipulation handles.
- Source: