Home › Forums › Programming › a problem about intersections and raycast
Tagged: intersections and raycast
- This topic has 12 replies, 4 voices, and was last updated 5 years, 1 month ago by
zirenjian.
-
AuthorPosts
-
2020-09-22 at 12:10 pm #33137
liekkas
ParticipantI 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 helpAttachments:
2020-09-22 at 12:12 pm #331392020-09-22 at 12:13 pm #331412020-09-23 at 12:55 pm #33166
Yuri KovelenovStaff2020-09-23 at 1:55 pm #33171
zirenjianCustomeri will email to u,ok?give u the package.thank u
2020-09-24 at 4:56 am #33210
Yuri KovelenovStaff2020-09-24 at 12:04 pm #33266
zirenjianCustomer2020-09-24 at 12:33 pm #33268
Alexander KovelenovStaff2020-09-24 at 12:47 pm #33269
zirenjianCustomerhi,in fact,we are using the verge3d 3.4 now.maybe it’s a little bug?
Attachments:
2020-09-24 at 1:11 pm #33271
Yuri KovelenovStaff2020-09-24 at 2:40 pm #33278
zirenjianCustomeryes,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 #33285
Alexander KovelenovStaffGlad 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.Attachments:
2020-09-24 at 4:10 pm #33289
zirenjianCustomerit’s very perfect now.thanks for both of you.
-
AuthorPosts
- You must be logged in to reply to this topic.





