decentraland / asset-packs

Asset Packs for the Decentraland Editor
0 stars 1 forks source link

Smart items, custom components and systems #11

Closed cazala closed 11 months ago

cazala commented 1 year ago

This conversation has been moved over here: https://github.com/decentraland/sdk/issues/933

Background

Items used to be only a GLB + Transform, but that would only allow us to create static scenes. In the legacy Builder we had the concept of "smart items" that had some interactivity baked in and enabled users to create some flows and simple game logic.

Now items can have more components than only GltfContainer, like Triggers and Actions, but when using those, they need specialized systems to be running, and custom components to be added to the engine.

The original plan to support this was the following:

Some of the problems found:

What we ended up doing:

menduz commented 11 months ago

Important details about rationale behind engine.defineComponent and how this feature was planned to work around it in the ADR-165 @cazala

cazala commented 11 months ago

This conversation has been moved over here: https://github.com/decentraland/sdk/issues/933