Create box on the clicked position

Hello. What I want to do is actually very simple. To create a shape in the clicked position on the floor when clicked with the mouse. I can’t just assign a position right now. Honestly, I don’t know where to get the location. I request your help in this matter.

Babylon.js Playground (

You should look up raycast and picking on the documentation :slight_smile:

as an example you could reuse the picking technique from this playground:

1 Like

Yes, it works. You are great. Thank you.