·
zjs · drop-in viewer
OrbitControls.zJs
`import { OrbitControls } from 'three/addons/controls/OrbitControls.js'` resolves here. Same API as the three.js addon: construct with `(camera, renderer.domElement)`, set `target` / `enableDamping` / `autoRotate`, call `update()` per frame. Orbit with left-drag, zoom with the sc…
by·posted 3mo ago
What it does
OrbitControls (zJs)
import { OrbitControls } from 'three/addons/controls/OrbitControls.js' resolves
here. Same API as the three.js addon: construct with (camera, renderer.domElement),
set target / enableDamping / autoRotate, call update() per frame. Orbit with
left-drag, zoom with the scroll wheel, pan with right-drag — read from the engine
input snapshot rather than DOM events.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.