# Basic Entities

The World Explorer [reserves a range](https://github.com/decentraland/docs/blob/main/contributor/runtime/modules/engine_api/README.md#identifying) of entity IDs for its own use. Of this range, the identifiers `0`, `1` and `2` are pre-assigned to a set of basic entities guaranteed to exist.

These are:

* `0`: `RootEntity`
* `1`: `PlayerEntity`
* `2`: `CameraEntity`

These entities have a known set of attached components that are managed by the runtime, i.e. their state is read-only for the scene. Obtaining the initial state of these components is part of the [scene initialization](https://github.com/decentraland/docs/blob/main/contributor/runtime/execution/README.md#onStart).

{% hint style="info" %}
Additional components for these entities are in development. The [CRDT synchronization mechanism](https://github.com/decentraland/docs/blob/main/contributor/runtime/modules/engine_api/README.md#synchronization) is expanding to provide some of the funcionality offered by different modules.

For example, scenes will be able to detect the state of the Explorer's window in order to optimize their network and CPU usage, or access richer information about the player, the comms system and the game camera.
{% endhint %}

**`RootEntity` (`0`)**

Holds general information about the scene's context.

* [`Transform`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#Transform): positional information of the scene's origin point, to which all other transforms without an explicit parent are relative.

The `Transform` component of the `RootEntity` is initialized with the following values:

```yml
scale: [1, 1, 1] # XYZ
position: [0, 0, 0] # XYZ
rotation: [0, 0, 0, 1] # XYZW
```

**`PlayerEntity` (`1`)**

Holds data about the player, their identity, their avatar and location.

* [`Transform`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#Transform): the positional information for the player's avatar.

**`CameraEntity` (`2`)**

Holds information about the game camera. All components are managed by the renderer.

* [`Transform`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#Transform): the positional information of the camera itself.
* [`PointerLocked`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#PointerLocked): whether the pointer follows the camera direction or moves independently.


---

# 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://docs.decentraland.org/contributor/scene-runtime/basic-entities.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.
