Skip to main content

Components

Balaur has no node classes and no inheritance tree: every node is the same entity, and capability comes from the components on it. What a Node2D, RigidBody or Label is elsewhere is here a plain node plus shape2d, body or widget — freely combined.

Each component is registered by a plugin with the schema below; one registration provides the scene-file key, the runtime node:set_component family, and the editor's inspector rows.

animation · 4 properties
propertytypedefaultnotes
autoplaystring
libraryasset
rootstring
speedfloat1.0
body · 1 property
propertytypedefaultnotes
kindenumdynamicone of dynamic, static, kinematic; scene shorthand: the key takes this value directly
body2d · 1 property
propertytypedefaultnotes
kindenumdynamicone of dynamic, static, kinematic; scene shorthand: the key takes this value directly
collider · 3 properties
propertytypedefaultnotes
half_extentsvec3[0.5, 0.5, 0.5]
kindenumcuboidone of ball, cuboid
radiusfloat0.5
collider2d · 6 properties
propertytypedefaultnotes
densityfloat1.0
frictionfloat0.5
half_extentsvec2[0.5, 0.5]
kindenumrectone of circle, rect
radiusfloat0.5
restitutionfloat0.0
color · 1 property
propertytypedefaultnotes
rgbacolor[0.8, 0.8, 0.8, 1.0]scene shorthand: the key takes this value directly
shape · 3 properties
propertytypedefaultnotes
half_extentsvec3[0.5, 0.5, 0.5]
kindenumcuboidone of ball, cuboid
radiusfloat0.5
shape2d · 3 properties
propertytypedefaultnotes
half_extentsvec2[0.5, 0.5]
kindenumrectone of circle, rect
radiusfloat0.5
sprite · 6 properties
propertytypedefaultnotes
columnsfloat0.0
framefloat0.0
half_extentsvec2[0.0, 0.0]
pixels_per_unitfloat100.0
rowsfloat0.0
texturestring
widget · 9 properties
propertytypedefaultnotes
anchorenumtop_leftone of top_left, top_right, bottom_left, bottom_right, center
clickedboolfalseread-only: engine output the inspector shows but never writes
font_sizefloat16.0
kindenumlabelone of label, button, panel
on_clickstring
textstringlabel
text_colorcolor[0.933, 0.945, 0.957, 1.0]
xfloat16.0
yfloat16.0