2D rectangle to select

Is it possible create a 2D rectangle and select the meshes inside that rectangle like this one?
BoxSelection

Adding @msDestiny14 for guidance on this one!

Yep let me see what I can do for you :smiley:

1 Like

Hereā€™s a second demo using javascript :slight_smile:

https://www.babylonjs-playground.com/#Q5KMXP#5

One thing to note is that this will continue to add to the current selected meshes each time you do a group selection. If you want to change that behavior all you will have to do is clear the selected meshes list every mouth click.

2 Likes

Thanks a lot.
It was very useful :smiley: