最終更新:2021-02-18 (木) 15:37:32 (1169d)
three.js/カメラ操作
サンプル
three.js/DeviceOrientationControls?
- Can be used to orient the camera based on the mobile device's orientation.
three.js/DragControls?
- This class can be used to provide a drag'n'drop interaction.
three.js/FirstPersonControls?
- This class is an alternative implementation of FlyControls.
three.js/FlyControls?
- FlyControls enables a navigation similar to fly modes in DCC tools like Blender.
- You can arbitrarily transform the camera in 3D space without any limitations (e.g. focus on a specific target).
three.js/OrbitControls?
- Orbit controls allow the camera to orbit around a target.
- To use this, as with all files in the /examples directory, you will have to include the file separately in your HTML.
three.js/PointerLockControls
- The implementation of this class is based on the Pointer Lock API.
- PointerLockControls? is a perfect choice for first person 3D games.
three.js/TrackballControls
- TrackballControls? is similar to OrbitControls?.
- However, it does not maintain a constant camera up vector.
- That means if the camera orbits over the “north” and “south” poles, it does not flip to stay "right side up".
three.js/TransformControls?
- This class can be used to transform objects in 3D space by adapting a similar interaction model of DCC tools like Blender. Unlike other controls, it is not intended to transform the scene's camera.
- TransformControls? expects that its attached 3D object is part of the scene graph.