Rengine / docsProject documentation

Reference

Component Behaviors

Look up syntax, contracts, layouts, algorithms, and exact behavior.

Components are small deterministic update functions attached to entities. A component may mutate transform fields such as position or rotation, but it returns the updated entity and engine state explicitly. Multiple components on one entity are applied in sequence.

e′=cn(Δt,…c2(Δt,c1(Δt,e,S),S)…,S)e' = c_n(\Delta t, \ldots c_2(\Delta t, c_1(\Delta t,e,S),S)\ldots,S)
Component chain. An entity's component list acts as an ordered transform/update pipeline.
rotation component:
  rotation += angularVelocity * delta

velocity component:
  position += velocity * delta

square path component:
  select edge by phase
  move along edge at configured speed

star path component:
  interpolate along star vertices by phase
Component catalog. The sample components cover continuous rotation, linear motion, and scripted path following.

Because component labels are exposed in the runtime tree, they also function as instrumentation. The inspector can explain why a node moves, not only where it currently is.