I’m working on my first babylon project and i would like increase some points.
A user can draw a line between two points and when he drag his mouse over line a popup is shown with some properties.
Basically each time user click, i create a sphere with MeshBuilder.CreateSphere and after i create a line with MeshBuilder.CreateLines. Meshes have a register action with OnPointerOverTrigger. The popup is made with babylon GUI (rectangle, stackpanel etc.)
No problem with that but the line event mouse area is not enough wide so it’s difficult to show the popup. It’s a pixel perfect.
In a previous silverlight 2d project i resolve this problem with a second wider transparent line which capture the event.
I don’t know what is the best solution to expand the event capture area in babylon (blue area in the image).
My first stupid idea would be to use the same trick like above but i am convinced it’s not the solution.
Do i need to use a wider bounding box arround the line mesh or any other solution ?
Thank you and apologies for my english