# Organize the character hierarchy

The main rule is: **CharacterBody and CharacterActor should always be in the root object (the "character" object).**

You can be creative with the rest of the components.

The demo characters use the following hierarchy:

![](https://3428853154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LvxVSjyzvP6F7c9h_Hu%2F-MA7oDdGet1MsRLZGHdW%2F-MA7o_GIoYaiBEzg5zjJ%2Fimagen.png?alt=media\&token=4e322bd7-b92c-48bb-8614-ec314e9fb394)

|             |                                                                                                     |
| ----------- | --------------------------------------------------------------------------------------------------- |
| Root        | Contains ***CharacterBody*** and ***CharacterActor***                                               |
| Graphics    | Contains the **visual elements** of the character, from sprites to animated 3D meshes.              |
| States      | Contains the ***CharacterStateController*** and every ***CharacterState*** related to the character |
| Actions     | Contains the ***CharacterBrain*** and all the ***AIBehaviours*** (AI characters).                   |
| Environment | Contains the ***MaterialController*** (used by some of the states included in the Demo)             |


---

# 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://lightbug14.gitbook.io/ccp/how-to.../implementation/organize-the-character-hierarchy.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.
