Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 TrackballControls 旋转对象而不是相机? http://threejs.org/examples/js/controls/TrackballControls.js
Three.js 引入了控件,因此您可以轻松地在空间中使用相机进行操作。控件用于摄像头,例如 TrackballControls、FPSControls...它们使随摄像头移动和旋转变得更加容易,并且它们几乎是自动更新的,因此无需手动编码计算。
如果你想变换对象,那么你应该使用对象的rotation和position属性,以及lookAt(THREE.Vector3 point)和 类似的。
rotation
position
lookAt(THREE.Vector3 point)
希望这可以帮助。