18.10.27 • Published 6 years ago
three.camerafacinggroup v18.10.27
THREE.CameraFacingGroup
class THREE.CameraFacingGroup extends THREE.Mesh
An instance of CameraFacingGroup
is a group of objects that are always facing the camera.
dependencies
setup
npm
npm install three.camerafacinggroup
ES module
import CameraFacingGroup from 'three.camerafacinggroup';
browser
<script src="https://unpkg.com/three"></script>
<script src="https://unpkg.com/three.camerafacinggroup"></script>
The class CameraFacingGroup
will be available under the namespace THREE
.
members
.constructor()
let geometry = new THREE.CircleGeometry(10, 32);
let mesh = new THREE.Mesh(geometry);
let group = new THREE.CameraFacingGroup();
group.add(mesh);
scene.add(sprite);
.isCameraFacingGroup = true
Used to check whether this is an instance of CameraFacingGroup
.
You should not change this, as it is used internally for optimisation.