How to place an object so that it does not run into walls of my scene in jMonkey

123 views Asked by At

In my game, the user has to click at a point to place an object (mesh). I can cast a ray and find the horizontal point where the object can be translated and then attached to rootNode to display it. However the problem is that if the user click too near to another object/scene_wall the object to be placed, runs into it. How can I prevent it??

0

There are 0 answers