Doodle3D-Core/src/d3/Camera.js

10 lines
190 B
JavaScript
Raw Normal View History

2017-11-15 15:13:49 +01:00
import * as THREE from 'three';
export default class Camera extends THREE.PerspectiveCamera {
matrixAutoUpdate = false;
update({ object }) {
this.matrix.copy(object.matrix);
}
}