Hi everyone, I have a project were I’d like to use my oculus controllers to press and drag to rotate an object I have. An example behavior would be this, but instead of a mouse click it would be a vr controller event. Mouses have a helpful ‘mousemove’ event, but I don’t see an equivalent event for the controllers. I haven’t had much luck working with the ‘selectstart’ controller event.
Does anyone know of similar projects or have any ideas to accomplish this? Thanks!
I think you have to calculate the distance the controller moved since it was clicked.
There is a selectstart and selectend event for vr controllers.
On selectstart, you have to store the controller position. You could use the animationFrame to check how much the controller moved since selectstart, if selectend was not triggered yet (while its still pressed).