What it does
vec3.add acts on vec3: it adds. It takes a and b.
Signature
vec3.add(a, b)Arguments
ab
Example · generated
function update(dt) { vec3.add(1, 0.4);}vec3.add 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.