Reference
Every component, asset type and script module in the Balaur game engine.
On this page
Every component, asset type and script module in the engine.
- A component gives a node a capability:
sprite,body3d,bone2d. - An asset type is a resource a component names:
mesh,tileset. - A script module is a set of functions a script calls:
http,physics3d. Vec2,Vec3andColorare built into the language.
Components
2D
| component | properties | what it gives a node |
|---|---|---|
articulation2d |
8 | Solves the node's joint2d in reduced coordinates. |
body2d |
23 | A 2D rigid body simulated by rapier in the xy plane. |
bone2d |
4 | Makes the node a 2D bone. |
boolean2d |
8 | Draws the node as its 2D children combined by operation, holes and all. |
breakable_joint2d |
2 | What snaps the node's joint2d: past either, it breaks and calls on_joint_break. |
camera2d |
4 | The orthographic camera a flat scene is drawn from. |
character2d |
17 | A 2D character controller. |
collider2d |
23 | The node's 2D collision shape, chosen by kind. |
convex_decomposition2d |
1 | How the node's collider2d cuts its mesh into convex pieces, for a convex_decomposition. |
follow2d |
12 | Pulls the node's body2d towards the pose of target every fixed step. |
generic_joint2d |
3 | Which axes a joint2d of kind generic locks, and which free ones it ties into one. |
joint2d |
13 | Joins this node's body to connected_body. |
light2d |
9 | A 2D light at the node's position. |
line2d |
13 | A stroked line at the node through the points of a mesh or path2d asset. |
mesh_collider2d |
10 | How the node's collider2d turns its mesh into a shape. |
modifier2d |
14 | Poses 2D bones toward target after the clip runs. |
multimesh2d |
5 | Godot's MultiMeshInstance2D. |
occluder2d |
2 | The outline the node blocks 2D light with. |
particles2d |
18 | A visual-only 2D emitter at the node. |
polygon |
6 | A filled, textured 2D polygon from the mesh asset's points and triangles. |
rope_joint2d |
1 | How long a joint2d of kind rope may stretch. |
screen_notifier2d |
2 | A box that announces screen_entered as it comes on screen and screen_exited as it leaves. |
shape2d |
4 | A 2D primitive at the node, tinted by color and drawn with texture. |
soft_circle2d |
2 | The size of a softbody2d laid out as a circle: a disk of particles inside a rim. |
soft_collision2d |
3 | A mesh the node's softbody2d meets the world through beside its own surface, deformed with the body. |
soft_custom2d |
5 | The particles and elements of a custom softbody2d, as the author lists them. |
soft_grid2d |
2 | The size and the cells of a softbody2d laid out as a grid: a sheet of particles. |
soft_outline2d |
1 | The corners of a softbody2d laid out as an outline: a ring of particles around an inside. |
soft_polyline2d |
1 | Which segments of its mesh a softbody2d laid out as a polyline joins. |
soft_rope2d |
3 | Where a softbody2d laid out as a rope runs, and how many particles it is made of. |
soft_skin2d |
2 | The mesh a softbody2d with cells carries as its skin. |
soft_volumetric2d |
2 | How a volumetric softbody2d fills its mesh's outline with triangles. |
softbody2d |
35 | A deformable 2D body. |
spring_joint2d |
1 | The length a joint2d of kind spring pulls back to. |
sprite |
14 | A textured 2D quad at the node, sized by pixels_per_unit. |
text2d |
19 | A block of text drawn in the 2D pass, pixels_per_unit font pixels per world unit. |
tile_collision |
20 | Collision for the node's tilemap cells. |
tile_shapes |
2 | How the node's tile_collision builds the tiles whose collision is polygons, the ones a tileset gives collision = [[[x, y], ...]]. |
tilemap |
9 | A grid of tiles from one tileset asset, centred on the node. |
touch_button |
10 | An on-screen button that presses an action while a finger is on it. |
touch_stick |
12 | An on-screen stick that drives action_x and action_y from -1..1 while a thumb drags it. |
transform |
4 | The node's position, rotation_euler, scale and skew in its parent's space. |
3D
| component | properties | what it gives a node |
|---|---|---|
articulation3d |
8 | Solves the node's joint3d in reduced coordinates. |
body3d |
25 | A 3D rigid body simulated by rapier. |
bone3d |
4 | Makes the node a 3D bone. |
boolean3d |
9 | Draws the node as its children combined by operation. |
breakable_joint3d |
2 | What snaps the node's joint3d: past either, it breaks and calls on_joint_break. |
camera3d |
10 | The camera the scene is drawn from. |
character3d |
17 | A 3D character controller. |
collider3d |
24 | The node's 3D collision shape, chosen by kind. |
convex_decomposition3d |
9 | How the node's collider3d cuts its mesh into convex pieces. |
follow3d |
12 | Pulls the node's body3d towards the pose of target every fixed step. |
generic_joint3d |
4 | Which axes a joint3d of kind generic locks, and which free ones it ties into one. |
joint3d |
13 | Joins this node's body to connected_body. |
light3d |
9 | A 3D light placed and aimed by the node. |
mesh |
10 | 3D geometry from the mesh asset in source, drawn at the node. |
mesh_collider3d |
9 | How the node's collider3d turns its mesh into a shape. |
modifier3d |
14 | Poses bone3d nodes toward target after the clip runs. |
multimesh3d |
9 | Godot's MultiMeshInstance3D. |
particles3d |
23 | A visual-only 3D emitter at the node, drawn as instances of one quad. |
reflection_probe |
9 | A box the room around it was captured inside. |
rope_joint3d |
1 | How long a joint3d of kind rope may stretch. |
shape3d |
9 | A 3D primitive at the node, tinted by color and drawn with texture. |
soft_cloth_tube3d |
4 | The shape of a softbody3d laid out as a cloth_tube. |
soft_collision3d |
3 | A mesh the node's softbody3d meets the world through beside its own surface, deformed with the body. |
soft_custom3d |
7 | The particles and elements of a custom softbody3d, as the author lists them. |
soft_grid3d |
2 | The size and the cells of a softbody3d laid out as a box or a cloth. |
soft_rope3d |
3 | Where a softbody3d laid out as a rope runs, and how many particles it is made of. |
soft_skin3d |
2 | The mesh a softbody3d with cells carries as its skin. |
soft_sphere3d |
2 | The size of a softbody3d laid out as a sphere: a refined icosahedron of particles. |
soft_volumetric3d |
5 | How a volumetric softbody3d fills its mesh with tetrahedra. |
softbody3d |
35 | A deformable 3D body. |
spring_joint3d |
1 | The length a joint3d of kind spring pulls back to. |
text3d |
25 | A block of text drawn in the 3D pass on a quad, pixels_per_unit font pixels per world unit. |
vehicle3d |
6 | Makes the node's body3d a raycast vehicle chassis. |
wheel3d |
11 | One wheel of the vehicle3d above it. |
Physics
| component | properties | what it gives a node |
|---|---|---|
ragdoll |
2 | Drives a rig's bones from bodies, one body per bone and named after it, which the editor's Create Physical Skeleton builds. |
Rendering
| component | properties | what it gives a node |
|---|---|---|
debug_draw |
7 | A wireframe over every triangle edge of the node's drawing. |
environment |
36 | The scene's atmosphere. |
material |
1 | source is the material asset this node and everything under it draw with. |
Animation
| component | properties | what it gives a node |
|---|---|---|
animation |
4 | Plays animation clips on the node. |
state_machine |
4 | Runs the state_machine asset in machine over the player node's clips. |
Audio
| component | properties | what it gives a node |
|---|---|---|
listener |
4 | The point positional sounds are heard from. |
sound |
23 | A sound on the node. |
UI
| component | properties | what it gives a node |
|---|---|---|
widget |
57 | A HUD element drawn every frame. |
widget_box |
5 | The rarer words about a box, which any kind may carry. |
widget_button |
7 | The rows a button or menu reads. |
widget_check |
4 | The rows a checkbox, switch or button reads. |
widget_child |
4 | What a child says to the parent it sits in, whatever its own kind. |
widget_code |
6 | The rows a code widget reads: what it highlights and its gutter. |
widget_color_picker |
3 | The rows a color_picker reads: the colour it holds and what it offers. |
widget_dropdown |
3 | The rows a dropdown reads: what it offers, how tall its list grows and what shuts it. |
widget_field |
14 | The rows a text_field, text_area or code reads. |
widget_fold |
1 | The row a fold reads: whether it shows what is under its header. |
widget_grid |
6 | The rows a grid reads: its tracks and its named areas. |
widget_image |
8 | The rows an image reads: its picture, the part of it drawn and how it sits in its box. |
widget_layout |
9 | The rows a container reads: how it lays out what is in it. |
widget_list |
4 | The rows a list or tree reads: its card faces, and what a drag or a mark on a row does. |
widget_menu |
7 | The rows a menu reads: where its popup opens and what shuts it. |
widget_range |
24 | The rows a slider, number_field or progress_bar reads. |
widget_rows |
4 | The rows a list, tree or table reads: what it holds and what is picked. |
widget_scroll |
12 | The rows a scroll, list, tree or table reads. |
widget_separator |
3 | The rows a separator reads: the room it takes and how far its line runs. |
widget_shortcut |
3 | The rows of a chord that clicks a widget, which any kind may carry. |
widget_table |
8 | The rows a table reads: its columns and how they sort. |
widget_tabs |
1 | The row a tabs reads: which child it shows. |
widget_text |
11 | The rows a kind drawing a caption reads. |
widget_window |
9 | The rows a window or a dialog reads: whether it is up, its chrome, and what shuts it. |
Other
| component | properties | what it gives a node |
|---|---|---|
bindings |
1 | Reactions the node runs from a table. |
meta |
0 | Named values filed on the node, like Godot's set_meta. |
states |
1 | Named looks for the node. |
timer |
5 | Counts wait_time seconds down and emits timeout from the node. |
Asset types
| type | files | used by |
|---|---|---|
animation_library |
animations/ |
animation.library |
bone_map |
animations/ |
— |
camera_effects |
camera_effects/ |
camera2d.effects, camera3d.effects |
font |
fonts/ |
text2d.font, text3d.font, widget.font |
heightfield |
heightfields/ |
— |
material |
materials/ |
boolean2d.material, boolean3d.material, line2d.material, material.source, mesh.material, multimesh2d.material, multimesh3d.material, particles2d.material, particles3d.material, polygon.material, shape2d.material, shape3d.material, sprite.material, text2d.material, text3d.material, tilemap.material |
mesh |
models/ |
line2d.mesh, mesh.source, occluder2d.mesh, polygon.mesh, soft_collision2d.collision_mesh, soft_collision3d.collision_mesh, softbody2d.mesh, softbody3d.mesh |
multimesh |
multimeshes/ |
multimesh2d.source, multimesh3d.source |
path2d |
paths/ |
— |
path3d |
paths/ |
— |
physics_material |
physics_materials/ |
collider2d.physics_material, collider3d.physics_material, softbody2d.physics_material, softbody3d.physics_material, tile_collision.physics_material |
skeleton_profile |
animations/ |
— |
soft_material |
soft_materials/ |
softbody2d.soft_material, softbody3d.soft_material |
sprite_sheet |
sheets/ |
particles2d.sheet, sprite.sheet |
state_machine |
animations/ |
state_machine.machine |
text_style |
text_styles/ |
text2d.text_style, text3d.text_style, widget.text_style |
texture |
textures/ |
boolean2d.texture, boolean3d.texture, line2d.texture, mesh.texture, multimesh2d.texture, multimesh3d.texture, particles2d.texture, particles3d.texture, polygon.texture, shape2d.texture, shape3d.texture, sprite.texture |
tileset |
tilesets/ |
tilemap.tileset |
voxels |
voxels/ |
— |
widget_theme |
themes/ |
widget.theme |
Script modules
| module | functions | what it is for |
|---|---|---|
animation |
19 | Clip playback on a node's animation component: play, pause, seek and query. |
apple |
18 | Apple services beyond platform.*: Game Center identity, purchases, notifications. |
assets |
9 | Asset definitions by reference. |
audio |
19 | Sound playback. |
browser |
5 | The page a browser build runs in; off the web every query answers nil. |
debugger |
9 | Breakpoints, pausing a script and resuming it. |
dependency |
6 | The projects a game imports whole under deps/<alias>/, declared in [dependencies]. |
encoding |
3 | Bytes to base64 text and back, and UTF-8 bytes back to text. |
engine |
31 | The running app. |
events |
4 | Named events between scripts. |
export |
5 | Exports the project being edited. |
forge |
5 | Projects kept on Forge, for the editor's pickers, and adding one to a game as a dependency. |
fs |
9 | Files on disk, project-relative unless the path is absolute. |
geometry2d |
11 | Polygons on the plane as lists of Vec2 points in outline order. |
geometry3d |
7 | Mesh operations. |
hash |
2 | SHA-256 content hashes of files and strings. |
http |
2 | HTTP requests off the frame. |
import |
6 | Imports a .glb or .gltf model, an .aseprite sprite, or a .tmx or .ldtk level into the project being edited, with the importers balaur import runs. |
input |
52 | One frame of input. |
json |
2 | JSON text to and from script values. |
log |
7 | The info, warn and error levels a script writes at, and the buffer behind them. |
math |
24 | Deterministic float maths backed by pure-Rust libm. |
multimesh2d |
13 | Thousands of copies of one sprite in one draw. |
multimesh3d |
12 | Thousands of copies of one mesh in one draw. |
multiplayer |
14 | Host, join and play a rollback match. |
node |
57 | What every node has: name, path, transform, children, components and script. |
physics |
12 | What spans both physics worlds: pausing, sleeping, tuning and clearing. |
physics2d |
118 | The 2D rigid-body world. |
physics3d |
127 | The 3D rigid-body world. |
picture |
1 | A picture of a project. |
platform |
10 | Store services every platform shares: sign-in, achievements, leaderboards, cloud saves. |
project |
15 | The projects this machine has opened, the templates a new one starts from, and the folder picker the OS provides. |
quat |
8 | Rotations as quaternions { x, y, z, w }. |
random |
6 | The engine's one deterministic PCG32 stream. |
regex |
6 | Regular expressions, the regex-lite dialect: no look-around or back-references. |
release |
4 | Which build of the engine this is, what the channels are publishing, and replacing this install with another. |
render |
45 | What a frame is made of. |
replay |
16 | Records what a running game is fed and plays it back. |
rollback |
2 | Rollback netcode from a script's side. |
scene |
23 | The node tree. |
script |
13 | What a tool asks about a script file. |
settings |
10 | Every setting the engine, its plugins and the game declare, by path. |
skeleton |
1 | Bones under a rig node, in the order a skin numbers joints in. |
strings |
5 | Localization: one strings/<locale>.toml per language, keys to strings. |
task |
3 | Waiting inside an async method. |
toml |
3 | TOML text to and from script tables, the format of scene files, asset definitions and component properties. |
types |
0 | The names of a value's type: what kind() answers on an any. |
ui |
37 | What a script asks of the UI and tells it. |
websocket |
5 | A long-lived socket for text or binary frames. |
window |
7 | The OS window and the display under it. |
Components
Every component a node can carry: what it gives the node, the properties a scene sets, and the functions a script calls on it.
Asset types
The content an asset-typed property names: a file in the project, or a definition written inline.
Script modules
What a script can call: every module, function and constant, read from a booted engine.