PointerEvent POINTERMOVE on animated objects

When listening for a mouse hover event we can use this method shown in this playground
https://www.babylonjs-playground.com/#RLQVGD

Is it possible to have the event be fired when an object is animating beneath a non-moving cursor? I have modified the playground as a starting point
https://www.babylonjs-playground.com/#RLQVGD#3

Thanks

At this point you might want to include this on every frame then in the registerBeforeRender, if that makes sense.

Can be expensive though…

1 Like