Jump to content

3d drag and drop menu


MarianG
 Share

Recommended Posts

Hi. As the title say, I'm trying to do a menu with 3d objects and you can drag objects from menu to the scene. It is basic yet. :) I'll add more features soon.
I've been trying to fix it for a while, so I decided to ask for help :D
So it's simple. We have a scene with a grid, and on top a menu with 3d objects.
The mesh that holds the 3d objects is parented to the camera., and about 300 on z axis.
I create a transparent plane at the same distance from camera and parent it to camera too, for drag and drop. It works well, but on drop I want to project the position of the 3d object on the grid somehow, but I do not figure it out. :( So I decide to put it on midle default.
Here is the sample: http://playground.babylonjs.com/#ANU67L#3
#line 131 is the default, and on #line 130 i tried something but without succes.

Any help are welcome. Pace and love :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...