> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/contributor/contributor-zh/chang-jing-yun-xing-shi/basic-entities.md).

# 基础实体

世界探索器 [保留一段范围](https://github.com/decentraland/docs/blob/main/contributor/runtime/modules/engine_api/README.md#identifying) 用于其自身使用的实体 ID。 在这段范围中，这些标识符 `0`, `1` 和 `2` 已预分配给一组保证存在的基本实体。

它们是：

* `0`: `根实体`
* `1`: `玩家实体`
* `2`: `摄像机实体`

这些实体具有一组已知的附加组件，这些组件由运行时管理，即其状态对场景而言是只读的。获取这些组件的初始状态是 [场景初始化](https://github.com/decentraland/docs/blob/main/contributor/runtime/execution/README.md#onStart).

{% hint style="info" %}
这些实体的附加组件正在开发中。 [CRDT 同步机制](https://github.com/decentraland/docs/blob/main/contributor/runtime/modules/engine_api/README.md#synchronization) 正在扩展，以提供不同模块所提供的部分功能。

例如，场景将能够检测探索器窗口的状态，以优化其网络和 CPU 使用，或访问有关玩家、通信系统和游戏摄像机的更丰富信息。
{% endhint %}

**`根实体` (`0`)**

保存有关场景上下文的一般信息。

* [`变换`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#Transform)：场景原点的位置信息，所有没有显式父级的其他变换都相对于它。

该 `变换` 的 `根实体` 使用以下值初始化：

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

**`玩家实体` (`1`)**

保存有关玩家、其身份、其化身和位置的数据。

* [`变换`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#Transform)：玩家化身的位置信息。

**`摄像机实体` (`2`)**

保存有关游戏摄像机的信息。所有组件均由渲染器管理。

* [`变换`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#Transform)：摄像机本身的位置信息。
* [`指针锁定`](https://github.com/decentraland/docs/blob/main/contributor/runtime/components/README.md#PointerLocked)：指针是跟随摄像机方向还是独立移动。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.decentraland.org/contributor/contributor-zh/chang-jing-yun-xing-shi/basic-entities.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
