Display a circle follow cursor

Hello guys,
I am trying to show a circle folow cursor. And it can recognize an object’s face.
Like that: https://rendertovr.com/player/?maindemo.
Can you give me some examples or sample code.
Thanks!

It seems your description is insufficient since the circle should not just follow the cursor but be transformed according to an intersection point and surface normal.

II suggest you use the code from webgl_decals. To be more precise the code from checkIntersection(). The idea is to perform simple raycasting and then extract the position and normal data from the intersection point. You can then position AND orient the circle so it looks like in the video.

1 Like