# 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:** 1\
**Showing post:** 3

<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. 🫡 🫡

---

_[View the full topic](https://forums.unrealengine.com/t/using-pcg-to-populate-cliffs-and-rocks-on-landscape-slopes/2262386)._
