What it does
vec3.reflect takes v and normal.
Signature
vec3.reflect(v, normal)Arguments
vnormal
Example · generated
function update(dt) { vec3.reflect(0.5, 1);}vec3.reflect 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.