Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { UniversalCamera } from "@babylonjs/core";
import {gsap} from "gsap";
import {fromScene} from "../tools";
export default class CameraComponent extends UniversalCamera {
private _cube : Mesh;
public onStart(): void {
var tl = gsap.timeline({repeat: 2, repeatDelay: 1});, {x: 20, duration: 1});
this.lockedTarget = this._cube;
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment