Search the Community
Showing results for tags 'drag & drop'.
-
Hello, Here's the Playground 'Drag & Drop': https://www.babylonjs-playground.com/#17EGSU#10 If you drag, say, the green cube backwards to the edge of the ground... then try and click and drag to get it back, you have to click on the part of the cube above where the extents of the ground is. How do we get around this, so that regardless of the point above the ground and so long as you're clicking on one of the meshes, it drags correctly? Cheers,
-
Hello, I'm new on the forum. I discover Babylon.js through the samples and the tutorials. I try to apply the concepts in small works and today I have a question. I made a playground here: http://www.babylonjs-playground.com/#1V3CAT#146 What you can see in this sample is a simple scene with a red box. The red box is included in a hole. I added events to give the possibilities to drag and drop the box. It works but now I expect that the box stays in the hole (collision system). Do you know how I can achieve this ? I tried to define the "checkCollisions" property on the different meshes but without success. I continue to read the documentations about collision, but maybe someone can help me. Thank you.