Jump to content

How to scene.pick objects behind others ?


Vousk-prod.
 Share

Recommended Posts

Hi everybody,

 

My camera is in a "room" (a big cube), and I'm using scene.pick to fire some actions on objects touching.

In some views the camera is outside the cube, we can still see inside since polys are one sided, but unfortunatly I cannot reach my objects with scene.pick anymore (the big cube is reach instead).

Is there a way to let the events go through the cube to touch other objects ? (I tried to play with event.preventDefault but with no luck)

 

Link to comment
Share on other sites

Now I have implemented my clicks/events stuff with ActionManager (so coooooool !!!! I love it), but same problem when I go outside the main cube, my touch events are caught by the cube and not the objects anymore...

How can I get rid of that ? Maybe a way to tell my cube object "do not catch event please" ?

Link to comment
Share on other sites

Great, great, great...

Everything is in this game engine yet :wub:

 

And, just in case (I don't need it but one day for sure...), is there a way to pick an array of all objects under the mouse (z-depth sorted for instance) ?

If an object is picked, the event doesn't go further, right ? Can we let the event go through all objects while triggering each one ?

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...