@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
26 lines (23 loc) • 692 B
text/typescript
import { Object3D } from "three";
import { serializable } from "../engine/engine_serialization_decorator.js";
import { Behaviour } from "./Component.js";
/**
* A LookAtConstraint is used by OrbitControls to make the camera look at a target.
*/
export class LookAtConstraint extends Behaviour {
/**
* When true the constraint is active.
*/
constraintActive: boolean = true;
/**
* When true the look at is locked to the position of the assigned sources.
*/
locked: boolean = false;
/**
* The sources to look at.
*/
sources: Object3D[] = [];
}