February 14, 2018
❗Warning: This is a legacy page covering functionality with the old SDK version 6. See the latest version of this topic here . Vectors # Decentraland uses vectors to represent paths, points in space, and directions. Vectors can also be used to define rotation orientations, as a friendlier alternative to quaternions. Vector2, Vector3 and Vector4 are each defined as different classes, containing a different number of dimensions.
Vector objects contain a series of handy methods that you can call to avoid having to deal with most vector math operations.
...
February 11, 2018
Add text to a scene using the TextShape component. This text sits in a position
Text in Decentraland supports all utf8 characters, this includes oriental and special characters.
📔 Note: This component is useful for in-world labels and UIs that exist in the 3D space of the scene, not for the player’s 2D HUD UI. The TextShape component is mutually exclusive with other shape components like primitive shapes and glTF 3D models, see Shape components for more details.
...
August 1, 2025
Trigger areas allow you to react to the event of a player entering or leaving an area, or of any other entity entering or leaving an area. This is a fundamental tool for creating interactive scenes. Use them for things like opening a door when the player approaches, or to score a point when a ball enters a goal.
Using trigger areas # To use trigger areas you need to add a TriggerArea component to an entity, then use a triggerAreaEventsSystem to react to the events.
...
July 15, 2022
Data Oriented Programming is a powerful approach to programming that results in big improvements to performance. It focuses on treating data as the cental element, all else is organized around it, to either access or modify that data. This approach is also very multiplayer friendly, as it makes the data that needs to be synchronized between players easier and faster to access.
Data Oriented Programming encourages you to think about everything in your scene as data that needs to be copied and mutated throughout the various systems.
...
February 27, 2018
❗Warning: This is a legacy page covering functionality with the old SDK version 6. See the latest version of this topic here . Raycasting is a fundamental tool in game development. With raycasting, you can trace an imaginary line in space, and query if any entities are intersected by the line. This is useful for calculating lines of sight, trajectories of bullets, pathfinding algorithms and many other applications.
When a player clicks or pushes the primary or secondary button, a ray is traced from the player’s position in the direction they are looking, see button events for more details about this.
...
February 13, 2018
3D models in .glTF and .glb format can include as many animations as you want in them. Animations tell the mesh how to move, by specifying a series of keyframes that are laid out over time, the mesh then blends from one pose to the other to simulate continuous movement.
Most 3D model animations are skeletal animations . These animations simplify the complex geometry of the model into a “stick figure”, linking every vertex in the mesh to the closest bone in the skeleton.
...
February 12, 2018
To move, rotate or resize an entity in your scene over a period of time, use the Tween component. The engine carries out the desired transformation smoothly, showing updates on every frame until the specified duration is over. Also the Transform component values of the affected entity gets updated in real time in case it’s needed to make proximity checks in the scene code.
💡 Tip: In the Scene Editor , you can move entities in a no-code way via Actions, see Make any item smart .
...
October 19, 2022
Color values can passed as properties of different components, like Materials , Text or different properties of UI entities . Color values can either be of type Color3 or Color4.
Color3 contains three properties, red, green, and blue. Color4 has those same three plus alpha, for transparency values.
Set a color # You can make a color by using the Color3.create() or the Color4.create() functions.
// Red color const red3 = Color3.
...
February 22, 2018
❗Warning: This is a legacy page covering functionality with the old SDK version 6. See the latest version of this topic here . There are several events that the scene can subscribe to, to know the actions of the player while in or near the scene.
For button and click events performed by the player, see Button events .
Player connects or disconnects # Whenever another player starts or stops being rendered by the local engine, this creates an event you can listen to.
...
February 22, 2018
There are several events that the scene can subscribe to, to know the actions of the player while in or near the scene.
For button and click events performed by the player, see Button events .
Player enters or leaves scene # Whenever an avatar steps inside or out of the parcels of land that make up your scene, or teleports in or out, this creates an event you can listen to.
...