Vousk-prod. Posted May 30, 2014 Share Posted May 30, 2014 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) Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted May 30, 2014 Author Share Posted May 30, 2014 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" ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 31, 2014 Share Posted May 31, 2014 Just set myCube.isPickable = false Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted May 31, 2014 Author Share Posted May 31, 2014 Great, great, great...Everything is in this game engine yet 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 ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 1, 2014 Share Posted June 1, 2014 Hehe not everything:) for instance we do not have multi-picking support (for now ) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 1, 2014 Share Posted June 1, 2014 Hehe not everything:) for instance we do not have multi-picking support (for now ) This is something that will be very much useful. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.