jscastro76 / threebox

A Three.js plugin for Mapbox GL JS, with support for animations and advanced 3D rendering.
Other
549 stars 145 forks source link

Possible to obtain mouse x,y screen coordinates within an ObjectMouseOver event? #391

Open jeffmacinnes opened 1 year ago

jeffmacinnes commented 1 year ago

Question

I'm trying to build a custom tooltip that will follow the mouse whenever the user is hovering anywhere over an object in the scene (rather than have the tooltip appear in a fixed location relative to the object). Is there any way to get the current mouse location from the 'ObjectMouseOver' event? Or from the tb instance itself?

Thanks!