PCG: Is there a way to avoid spawns near the edges of a mesh?

Well, I’m answering my question again :smiley:

Happy to inform that I’ve found the solution (tried in UE 5.3). So, I was just exploring different PCG nodes and found the one which name was pretty straightforward: Discard Points On Irregular Surface.

Here’s an example:

Result (just a simple cliff mesh on a plane):

And here’s another result with the surface full of sample points which clearly demonstrates how this node works:

Hope this would be helpful.

4 Likes