> For the complete documentation index, see [llms.txt](https://cgtoolbox.gitbook.io/cgtoolbox-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cgtoolbox.gitbook.io/cgtoolbox-docs/pcg-painter/root-points-projection.md).

# Root points projection

[Root points](/cgtoolbox-docs/pcg-painter/tool-documentation.md#tool-steps) are created during brush strokes on objets, but can be projected again after their creation on visible objects, in case the objects moves.

<figure><img src="/files/PSgK1ADYbPTDkYPwQyPY" alt=""><figcaption><p>Root points painted | Object moved | Root points re-projected / baked</p></figcaption></figure>

This can be done using the PCGPainter parameters of any PCGPainterActor:

<figure><img src="/files/YSLsSly6gGd1M9P9Dwqj" alt=""><figcaption></figcaption></figure>

Use the "BakeProjectedRootPoints" to re-project and re-baked root points on visible objects, scattered points will be recreated using the new root point positions.

**Projection mode:**

Two projection modes are available:

* "Hit normal", the root points will be projected in a direction defined by the hit normal of the existing root points when there where drawn the first time.
* "World Z", the root points will be projected using a top - down direction only.

<figure><img src="/files/DRXLGxzo4dCKd1JjN4F3" alt=""><figcaption><p>Hit normal projection</p></figcaption></figure>

<figure><img src="/files/KCMOz86OyntHY2P4wIk6" alt=""><figcaption><p>World Z projection</p></figcaption></figure>

**RaycastLenghtMultiplier:**

This parameter is used to create the projection lenght, it's defined using the brush strokes radius \* RaycastLengthMultiplier.

**Show trace debug:**

If on, green lines will be displayed with the lenght and orientation of the projection on each root points.

**Draw time:**

The amount of time in second the debug projection lines will be displayed.

**Bake root points on end stroke:**

If ON, force to rebake the root points on each brush strokes "mouse release".

***
