Builtin Library
README.md
expr
A value that changes with time, written with ordinary arithmetic: Time, Expr.sin, Expr.cos, Expr.sqrt, Expr.atan2, Expr.abs, Expr.min, Expr.max, Expr.mod, and + - * / ^. The result holds its whole formula as data, which the ModelGraph graph evaluates on the device every frame. A number is a constant, and arithmetic on numbers alone folds to a number.
local angle = Time * 6.28
piston.position.y = 1.74 * Expr.cos(angle) + Expr.sqrt(32 - 3 * Expr.sin(angle) ^ 2)