# 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".

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cgtoolbox.gitbook.io/cgtoolbox-docs/pcg-painter/root-points-projection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
