decentraland / adr

Architecture Decisions Records
https://adr.decentraland.org/
Other
22 stars 11 forks source link

StaticEntities #219

Open menduz opened 1 year ago

menduz commented 1 year ago

Context

In order to facilitate communication between the renderer and the scenes, a special number of reserved entities are needed. These entities hold no special logic compared to other entities, but they have static IDs that systems can use to share information about the renderer, player, camera, etc. Decision

We will reserve 512 static entities numbers, starting at 0. The "0" entity will be the root entity of the scenes, and all other entities will be parented to it by default. List of static entities per scene

Consequences

By reserving a fixed number of static entities and assigning specific roles to them, we simplify the renderer-scene communication. This decision will make it easier for systems to share information about the renderer, player, camera, etc.

However, it is important to note that some of the components mentioned above are still TBD and may be subject to future revisions.