import * as RE from 'rogue-engine'; export default class Flashlight extends RE.Component { awake() { } start() { this.object3d.getObjectByName("Spotlight")?.lookAt(this.object3d.position.x, this.object3d.position.y -0.4, this.object3d.position.z - 1) } update() { } } RE.registerComponent(Flashlight);