Touch input without collider?

Hi, is it possible to use touch input without having a collider on an object?

The touch phases only work if there is a collider on an object. I want TouchPhase.Began, Moved and End just like we get on touch screen devices.

Same for Direct & IndirectPinch

how to do on visionOS?

1 Like

No, it is not. RealityKit requires the collider (which we turn into a CollisionComponent) to find the intersection between the gaze vector/hands and the scene geometry. Without the collider, there’s nothing to indicate what you are looking at/touching in the scene. You should be able to, however, create a large invisible (trigger) collider around the viewer to catch input in all directions in unbounded mode–or, also in unbounded mode, you could just use hand tracking.