Skip to content

Intermact API Reference / @intermact/core / quatLookAt

Function: quatLookAt()

quatLookAt(eye, target, up?): Quaternion

Defined in: packages/core/src/math/quaternion.ts:113

Quaternion orienting a camera/object at eye to look toward target, with the given world up. Uses a right-handed basis where the view looks down -Z (three.js camera convention).

Parameters

eye

Vec3

target

Vec3

up?

Vec3 = ...

Returns

Quaternion

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)