import { Constants } from "../Constants";
export class AlLookToCamera {
    static get Object() {
        return {
            schema: {},
            init() {
                this.tickFunction = AFRAME.utils.throttle(this.tickFunction, Constants.minFrameMS, this);
            },
            tickFunction() {
                this.el.object3D.lookAt(this.el.sceneEl.camera.position);
            },
            tick() {
                this.tickFunction();
            }
        };
    }
    static get Tag() {
        return "al-look-to-camera";
    }
}
