Zns=true problem

when use <script>zns = false</script> no problem.
but when use <script>zns = true</script>,
const controls = new OrbitControls(three.camera, three.canvas); have bug,and can't make controls

Will have a look now.

Ah... if you turn zns off that means the various controls are not automatically made global either. So you need to import any that you use:

import ZIM from "https://zimjs.org/cdn/018/zim_three";
// Add this:
import {OrbitControls} from "https://zimjs.org/cdn/018/zim_three";

We will add that to the docs.

Will be adding this to the new ZIM 019 docs:

1 Like