Tagged: intersections and raycast
- 2020-09-22 at 12:10 pm #33137
I tried to use the intersections and raycast,want to get any objects when they are clicked.use the puzzle just like this:
but when i click the model cube ,i can get it
when i click the complex model i imported from blender,i can’t get it,just get the subobjects
so i need your help2020-09-22 at 12:12 pm #331392020-09-22 at 12:13 pm #331412020-09-23 at 12:55 pm #331662020-09-23 at 1:55 pm #33171
i will email to u,ok?give u the package.thank u2020-09-24 at 4:56 am #332102020-09-24 at 12:04 pm #332662020-09-24 at 12:33 pm #33268Alexander KovelenovDeveloper2020-09-24 at 12:47 pm #33269
hi,in fact,we are using the verge3d 3.4 now.maybe it’s a little bug?2020-09-24 at 1:11 pm #332712020-09-24 at 2:40 pm #33278
yes,the complex model can be recognized now.but the model which is cloned or load by append scene gltf format can’t still be recognized.when clicked,has no response.i made a video in the package named “verge3d” to you on the wetransfer.
https://we.tl/t-tDdsx1aLn92020-09-24 at 3:15 pm #33285Alexander KovelenovDeveloper
Glad you resolved the first issue. As for append scene, the “all objects” puzzle gets resolved once it appears in the puzzles pipeline (this is a current limitation of puzzles). You should assign you when clicked puzzle again once you load another scene dynamically:
Of course this example is just a quick fix, for more precise results you should name all of the loaded objects and assign “when clicked” on them.
2020-09-24 at 4:10 pm #33289
- This reply was modified 3 weeks, 5 days ago by Alexander Kovelenov.
it’s very perfect now.thanks for both of you.
- You must be logged in to reply to this topic.