# Using PCG to populate cliffs and rocks on landscape slopes

**URL:** <https://forums.unrealengine.com/t/using-pcg-to-populate-cliffs-and-rocks-on-landscape-slopes/2262386>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [January 6, 2025, 11:16am UTC](https://forums.unrealengine.com/t/using-pcg-to-populate-cliffs-and-rocks-on-landscape-slopes/2262386 "2025-01-06T11:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sypher-66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sypher-66](https://forums.unrealengine.com/u/Sypher-66)\
**Post date:** [January 6, 2025, 11:16am UTC](https://forums.unrealengine.com/t/using-pcg-to-populate-cliffs-and-rocks-on-landscape-slopes/2262386/1 "2025-01-06T11:16:24Z")

</div>

I’m trying to create a PCG graph that, as the title suggests, populates cliffs and rocks on landscape slopes.

The issue is the cliff meshes are orientated in a particular direction that i need to maintain and i can’t find any transform options that make this happen.

Basically i need all the cliff meshes to maintain Z axis pointing upwards, ideally rotated with the surface normal so they fit flush to the slope. The Y axis should point forwards using the surface normal and the X axis should be unchanged. I think that is correct.

using absolute rotation seems to use world position and ignore the surface normals but at least the mesh is orientated in the correct way

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/7/9d70638b4289541919049867633981dfd7db1eec.jpeg)

without absolute rotation, its using the surface normals which is good but i can’t find a way to get the Z Axis uniformly pointing upwards

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/1/5c167249a1db8efedb738dcaff7e6046d8a57a96.jpeg)

Anyone know how i can achieve such a thing? This seems quite possible in houdini but can’t find an easy way in unreal. thanks in advance

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/4/0a495646890ff7fc9c90f20a86a300ecee5fdc00.jpeg)

---

<div class="post-metadata">

**Author:** ![oliwerlundberg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oliwerlundberg](https://forums.unrealengine.com/u/oliwerlundberg)\
**Post date:** [April 23, 2025, 3:30pm UTC](https://forums.unrealengine.com/t/using-pcg-to-populate-cliffs-and-rocks-on-landscape-slopes/2262386/2 "2025-04-23T15:30:32Z")

</div>

Did you find a solution? having the same problem 🙂

---

<div class="post-metadata">

**Author:** ![BRGEzeHulton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BRGEzeHulton](https://forums.unrealengine.com/u/BRGEzeHulton)\
**Post date:** [April 24, 2025, 3:08pm UTC](https://forums.unrealengine.com/t/using-pcg-to-populate-cliffs-and-rocks-on-landscape-slopes/2262386/3 "2025-04-24T15:08:06Z")

</div>

Hi @Sypher-66 I have an idea that could be helpful for you. Use a **Custom Node** inside your PCG graph to manually adjust the rotation of each point based on the surface normal.

- **Add a Custom Blueprint Node** to your PCG graph.
- Inside the **PointLoopBody** , apply this logic:
- Normal = GetSurfaceNormal(Point.Position)
- Rotation = MakeRotFromZ(Normal)
- Point.Rotation = Rotation

Tutorial:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/6/536693053a765e56d303338c5b1140ced5795877.jpeg "Unreal Engine 5.2 PCG Tutorial - Rotate Objects to Face a Point") ](https://www.youtube.com/watch?v=D_eFpDywzIY)

> [@PCG - Rotate point to look up slope on landscape](https://forums.unrealengine.com/t/pcg-rotate-point-to-look-up-slope-on-landscape/1771327):
>
> I’m trying to place rocks on the steep parts of the landscape. Which works fine. But most rock assets have a direction, so I need to place them facing upwards. My points are aligned with the landscape, but I need them to also point “up” the slope. Any idea where to start?

This video might also be helpful

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/b/9eb04bfa03044e9042ff8b68235ae6e2fb8ca96c.jpeg "Unreal Engine 5.2 PCG Tutorial - Using a Height Filter to Place Trees on a Mountain") ](https://www.youtube.com/watch?v=pveLvjpDY5I)

Please reply in this thread if it was helpful or if you have any questions. I hope you can resolve it. 🫡 🫡
