# \[PCG\] How to spawn points on the sides of a mesh with World Ray Hit Query + Surface Sampler?

**URL:** <https://forums.unrealengine.com/t/pcg-how-to-spawn-points-on-the-sides-of-a-mesh-with-world-ray-hit-query-surface-sampler/2279409>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [January 16, 2025, 2:03am UTC](https://forums.unrealengine.com/t/pcg-how-to-spawn-points-on-the-sides-of-a-mesh-with-world-ray-hit-query-surface-sampler/2279409 "2025-01-16T02:03:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ikkyyyyyyyy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikkyyyyyyyy](https://forums.unrealengine.com/u/Ikkyyyyyyyy)\
**Post date:** [January 16, 2025, 2:03am UTC](https://forums.unrealengine.com/t/pcg-how-to-spawn-points-on-the-sides-of-a-mesh-with-world-ray-hit-query-surface-sampler/2279409/1 "2025-01-16T02:03:36Z")

</div>

Hi! I’m using a BP Volume with PCG to spawn points on a mesh when it overlaps. The problem is that it will only spawn points on the top of the object and not on any of the sides. Is there a way to do this with World Ray Hit Query + Surface Sampler without having to use tags or mesh sampler? I would like to keep using the flexibility of a BP volume instead of having to tag or input every mesh. Below is the graph I have set up now. I’m hoping to use this to spawn vines on walls like the reference image below.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/a/93ac1b3bcc86223fb9b40d00fe45209e7af4e546.jpeg)  
 ![PCG_Graph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/4/744b4494ff1623b26372b41870ada414dda7401b.png)  
 ![Ivy_wallclimb_ref](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/2/8e232f1b826a439577ade67265b9cf33c632b12c.jpeg)

---

<div class="post-metadata">

**Author:** ![mattyinthesun01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mattyinthesun01](https://forums.unrealengine.com/u/mattyinthesun01)\
**Post date:** [March 5, 2025, 1:38am UTC](https://forums.unrealengine.com/t/pcg-how-to-spawn-points-on-the-sides-of-a-mesh-with-world-ray-hit-query-surface-sampler/2279409/2 "2025-03-05T01:38:36Z")

</div>

You could use “World Volume Query” and plug that into a projection of a grid of points. You could also do multiple world ray query’s from different directions.
