UNPKG

@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.

32 lines (31 loc) 1.06 kB
import { Object3D } from "three"; import { type UsdzBehaviour } from "../../engine-components/export/usdz/extensions/behavior/Behaviour.js"; import { USDObject } from "../../engine-components/export/usdz/ThreeUSDZExporter.js"; import { Behaviour } from "../Component.js"; /** * LookAt behaviour makes the object look at a target object or the camera. * It can also invert the forward direction and keep the up direction. */ export declare class LookAt extends Behaviour implements UsdzBehaviour { /** * The target object to look at. If not set, the main camera will be used. */ target?: Object3D; /** * Inverts the forward direction. */ invertForward: boolean; /** * Keep the up direction. */ keepUpDirection: boolean; /** * Copy the target rotation. */ copyTargetRotation: boolean; private static flipYQuat; /** @internal */ onBeforeRender(): void; /** @internal */ createBehaviours(ext: any, model: USDObject, _context: any): void; }