3d cursor marker [solved]

i have been trying to make a 3d cursor that shows you where your cursor is, over a 3d object
so far this Babylon.js Playground but a few problems
1 i think it could be shorter in code

2 if i hold the mouse down and then move away from the object the cursor is still shown

any idea how i could fix it?
the idea is to re-create this cannon.js mouse pick demo
in babylon

and if you have any idea how i can get the joint working so you can picking the cube as in the demo/link i gave please let me know

a solution i found digging deep
https://www.babylonjs-playground.com/#0UIV2T#0

3 Likes