vertecs
Version:
A typescript entity-component-system framework
56 lines (43 loc) • 1.2 kB
text/typescript
import { Camera } from "three";
import { Vec3 } from "ts-gl-matrix";
import { Component, Entity } from "../../core";
export default class ThreeCamera extends Component {
readonly
public constructor(
camera: Camera,
lookAt?: Entity,
lookAtOffset?: Vec3,
id?: string,
update?: boolean
) {
super(id);
this.
this.
this.
this.
}
public get orbitControls(): boolean {
return this.
}
public get lookAtOffset(): Vec3 {
return this.
}
public set lookAtOffset(value: Vec3) {
this.
}
public get lookAt(): Entity | undefined {
return this.
}
public set lookAt(value: Entity | undefined) {
this.
}
public get camera(): Camera {
return this.
}
public set camera(value: Camera) {
this.
}
}