Closed itsPreto closed 7 months ago
@itsPreto thanks for reaching out.
Without setting up your own Raycaster and pointer detection system I don't think you will be able to do that out of the box. The module doesn't know or recognise foreign objects added to the scene directly.
Thanks @vasturiano that sounds like a big headache for little reward so I'll put it on low priority for now lol but since we're already here and I don't feel like this deserves a whole issue-- do you know of any ways to override the default camera movement/logic for the 'fly' orbitControls?
Currently the camera moves when I move the mouse which can make navigating (accurately) somewhat hard. It would be nice to make it so that he camera only moves when I hold down the the mouse (right or left key), and once I let go it either stops immediately or 'trackballs' to a stop.
@itsPreto I'd suggest digging a bit deeper into the docs of ORbitControls to see if there's a way to configure it to behave the way you want.
how does one go about adding either a listener for hover or click events on this custom mesh I added to the scene?