Closed jenerse closed 3 years ago
OrbitControls 是在哪个包导入?
和three一样放在examples/jsm/下的仓库里
import { OrbitControls } from 'three-platformize/examples/jsm/controls/OrbitControls'; const orbitControl = new OrbitControls(camera, renderer.domElement);
详细可以参考这个DEMO仓库,里面有很多例子
https://github.com/deepkolos/three-platformize-demo
https://github.com/deepkolos/three-platformize-demo-wechat
OrbitControls 是在哪个包导入?