Valeriob Posted October 31, 2018 Share Posted October 31, 2018 Hi, i created a Solid Particle System with box shapes, and i was able to get the particle picked by a ray. I would like to draw something (another mesh, with some text probably) on top of the box shape on the face that was picked. I tried the following, and i see particle._model._shape, how can i use face.faceId to reconstruct that surface ? Thanks ! let info = this.scene.pickWithRay(ray); let face = sps.pickedParticles[info.faceId]; let particle = sps.particles[face.idx]; let someArrayOfPointsToBuildA2dSurface = someMagicFunction( particle._model._shape, face.faceId); Quote Link to comment Share on other sites More sharing options...
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.