I’m trying to spawn particles inside the area of a closed loop spline… Is this possible, and how?
There are many ways to do that. Here is one of it:
Get bounding box of the shape.
On particle spawn, generate random position within that box and set it as particle position
Take spline segment, and a ray in any direction in the plane of said spline. Intersect ray with spline segment.
Repeat for all segments.
If number of total intersections you received is even or zero, kill the particle.
Keep the particle otherwise.