Viewport position of a minimap on second camera

@Wingnut

Hello again!

Here is what I’ve got so far: https://www.babylonjs-playground.com/indexStable.html#UTINNB#9

Generally it’s working, just a couple of questions please:

  • in my app the selection of the any of the three blue objects (they are even more actually) works every time, but in the playground linked it works from time to time and only if the object is roughly in the center of the viewport - how to fix this?

  • the axis drawings (the lines) are rather anemic - what’s the best way to make them thicker and have “arrows” or other reasonable top end?

  • finally, the whole idea of this “minimap” is to give the user a simple orientation how a data graph is presented in the 3D space - is there a better way to do this?

  • “optimized” a little bit the “_camera_point()” function - line 168 - should I even bother with such efforts?

Thanks again!
Ilia.