nicktendo Posted June 27, 2017 Share Posted June 27, 2017 Is it possible to detect an intersection between a mesh and a submesh of another mesh? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 29, 2017 Share Posted June 29, 2017 Hey, sorry for the slow replies, NickT. You must be asking difficult questions. Wanna see the mess I'm building... regarding your question? I knew ya did. https://www.babylonjs-playground.com/#1B0PF#7 Four "balloons" intersecting (sort-of) various submesh of a sphere. Watch the console. It is a bit FPS-bogged because... when intersect is happening, renderLoop is "streaming" console outputs. Spraying them. Fire hose! But hey, I got some subMeshId's going to console. Submesh-level intersect testing! Yay! (kludge warning) Real bad coding on my part. Using pi.distance as an intersect conditional? Sad, Wingy. Sad. :/ If somebody can re-code this in a way... that DOESN'T look like a baby wrote it with a chainsaw, we might have some success. There's got to be better ways... but... I need that pickingInfo.subMeshId... and intersectsMesh and actionManagers... can't seem to provide that. Still thinking and learning, though. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted July 7, 2017 Share Posted July 7, 2017 Wingnut, always here for those who get no answer. Tireless knight, defending the (code's) widow and orphan, forever Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 9, 2017 Share Posted July 9, 2017 It takes special skills, I tell ya. Type an unbearably-long reply, assuming that the user is a 4 year old (ridiculous over-explaining of the subject, nowhere near on-topic, packed with failed attempts at comedy). Eventually, the user commits suicide out of tedium, and that is usually a workable solution. heh. GameMonetize, Vousk-prod. and Convergence 3 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.