A module that will enable pointer selection for motion controllers of XR Input Sources
Auto AttachSearch playground for disableAutoAttach
Should auto-attach be disabled?
Pointer LightingSearch playground for disablePointerLighting
Disable lighting on the laser pointer (so it will always be visible)
Selection Mesh LightingSearch playground for disableSelectionMeshLighting
Disable lighting on the selection mesh (so it will always be visible)
Laser PointerSearch playground for displayLaserPointer
Should the laser pointer be displayed
Selection MeshSearch playground for displaySelectionMesh
Should the selection mesh be displayed (The ring at the end of the laser pointer)
DisposedSearch playground for isDisposed
Is this feature disposed?
Pointer Default ColorSearch playground for laserPointerDefaultColor
Default color of the laser pointer
Pointer Picked ColorSearch playground for laserPointerPickedColor
This color will be set to the laser pointer when selection is triggered
Selection PredicateSearch playground for raySelectionPredicate
Optional filter to be used for ray selection. This predicate shares behavior with scene.pointerMovePredicate which takes priority if it is also assigned.
Mesh Default ColorSearch playground for selectionMeshDefaultColor
default color of the selection ring
Mesh Picked ColorSearch playground for selectionMeshPickedColor
This color will be applied to the selection ring when selection is triggered
Native Feature NameSearch playground for xrNativeFeatureName
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
Static Readonly NameSearch playground for Name
The module's name
Static Readonly VersionSearch playground for Version
The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version
Is this feature attached
attach this feature Will usually be called by the features manager
true if successful.
detach this feature. Will usually be called by the features manager
true if successful.
Dispose this feature and all of the resources attached
Mesh Under PointerSearch playground for getMeshUnderPointer
ByPointer IdSearch playground for getXRControllerByPointerId
CompatibleSearch playground for isCompatible
This function will be executed during before enabling the feature and can be used to not-allow enabling it. Note that at this point the session has NOT started, so this is purely checking if the browser supports it
whether or not the feature is compatible in this environment