Pick a particle in SolidParticleSystem

For now, the SPS picking feature is simply its underlying mesh picking feature, so facet based. There’s no such a thing like TransformNode in the SPS.

But… the SPS also supports intersections as you may know. A simple way to check ray/particle intersection would maybe then be :

  • to disable the SPS pickability
  • to enable the particle intersections instead, then to test your emitted ray against the particle bounding spheres (or with some customized bsphere ratio to tight the sphere around the particle)
    Use the Solid Particle System - Babylon.js Documentation
    This would be way faster in theory. Not tested though.