Skip to content

WasmGPU.createControls

Summary

WasmGPU.createControls is the camera-controls factory facade. It creates navigation, orbit, trackball, and fly controllers bound to a camera and canvas element; the returned controller is caller-owned and should be disposed when it is no longer needed.

Canonical documentation namepaths use createControls.* for the directly traversable controller factories and createControls.*#* for members of a returned controller instance.

Syntax

const controls = wgpu.createControls.navigation(camera, canvas);

Available APIs

See Also