Im currently using PCG graphs to generate content. I would like to generate static meshes with PCG and at the same time use “World Ray Cast Query” or “Projection” to create like a map of points that are on the landscape versus on the static mesh that was generated.
In this post they are doing basically what i want, but its just on a regular static mesh and not one generated by PCG. I cant get it to work inside of the PCG graph. There is some issue with collision or something, because the ray points go right threw the pcg meshes and just hit the landscape, if that makes sense!
Hey!
I have solved this. It’s done with “Surface Sampler” node. Connect “World Ray Hit Query” node to Surface input. Must check your Mesh collision settings. It must match the World Ray Hit Query settings.
Note: Consider connect Bounding Shape after your MeshSpawner so that it waits for the mesh to hit.