Tumblestep: The Endless Stair
README.md
shake
Additive camera shake. play(spec, opts) starts a layer: noise, a directional kick (pushed away from opts.from, or along opts.direction), a rumble or a quake, optionally with distance falloff = {near, far} measured from the listener. It returns the strength after falloff, or 0. Layers are capped (MAX_LAYERS, MAX_AMP, MAX_ROT). attach() puts JuiceShakeApply and JuiceShakeRestore on the scene camera, and play calls it for you. The offset is applied after the camera controller and removed before the next one, so the camera never drifts. Also falloff, listenerPosition, offset, activeCount, stop and stats.