VglCamera
This is abstract base component for cameras, corresponding THREE.Camera. This component should always be mixined (inherited). You probably want a VglPerspectiveCamera and VglOrthographicCamera.
Properties of VglObject3d are also available as mixin.
props
-
orbit-targetvector3 (optional)Position in 3D space for the camera to point towards. This property overwrite rotation property when both defined.
-
orbit-positionspherical (optional)Spherical position around orbitTarget. This property overwrite position and rotation properties. If orbitTarget is not defined, automatically set to (0, 0, 0).
-
namename (required)Name of the camera
computed properties
-
instThe THREE.Camera instance.
methods
-
emitAsCamera()Emit an event in the
camerasnamespace.