How to make A kind of rectillium/selector in babylon


i want to select object like in this script do we have some library or some other thing similar to this , i donot know exact wording for this so giving example , i want to implement it in both normal mode and vr mode. Kindly help .

Want to rotate the cylinder panel either left or right on clicking the button

Hi Amit/others. Has this issue been solved, yet?

“selecting a mesh” is sometimes called “mesh picking”. Many people use ActionManager (added to the mesh)… to do powerful “picking” operations that work correctly in standard or VR mode.

There is also options for placing an invisible BJS GUI button/panel-of-buttons “atop” the mesh… which always faces the camera, and can “simulate” a mesh being “picked”. Using 4 GUI invisible buttons… inside a GUI stack-panel, (all invisible)… you can create “zones” on the panel. In brief… click on UPPER part of mesh, mesh rotates upward. Click on LEFT part, mesh rotates left, etc. etc. 4 button-“zones” on a panel, all can be invisible, or partially-transparent, or opaque.

SOME people make a GUI stack-panel-of-button-choices that pops-up when a mesh is “selected”, which disappears when no mesh is selected (edit mode/normal mode).

Ok, that’s some ideas. Keep experimenting, and please give report of current progress. Is this issue still “open”? If so, we try to help more.

1 Like