What it does
math.distance takes a and b.
Signature
math.distance(a, b)Arguments
ab
Example · generated
function update(dt) { math.distance(1, 0.4);}math.distance is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.