Hi everyone,
We already have “Create Points Inside A Mesh”.
But this is quite heavy. In my use case I want to fire a couple of bullets against a box collider. All the bullets should collide but have a slightly deviated target vector. It just looks stupid if they all travel on the same trajectory.
Anyway, here is the discount version of the point-inside-mesh function: Babylon.js Playground
Limitations: it samples in a sphere.
Best wishes
Joe