Defines an interface for bridging inputs with Interactor.
For custom inputs, implement this interface, e.g.,
export class CustomInput extends Component implements InteractorInput { static TypeName = InteractorInputTypename; onGrabStart: Emitter; onGrabEnd: Emitter; update() { // Notify `onGrabStart` and `onGrabEnd`. // Could be an event from the network, anything. } /** @override */ get xrPose(): XRPose { return this._xrPose; }} Copy
export class CustomInput extends Component implements InteractorInput { static TypeName = InteractorInputTypename; onGrabStart: Emitter; onGrabEnd: Emitter; update() { // Notify `onGrabStart` and `onGrabEnd`. // Could be an event from the network, anything. } /** @override */ get xrPose(): XRPose { return this._xrPose; }}
The custom bridge doesn't need to be a Wonderland Engine component.
Notify once the grab must end.
Notify once the grab must start.
Current controller XR pose.
Defines an interface for bridging inputs with Interactor.
For custom inputs, implement this interface, e.g.,
Example
The custom bridge doesn't need to be a Wonderland Engine component.