lookAtTransform static method
A local transform placing an object at eye with its forward axis (local
+Z) facing target, and up as the reference up (defaults to +Y).
The static counterpart to lookAt, for the construction and declarative
paths: pass it to Node(localTransform: ...) or a declarative node's
transform:. See lookAt for the forward-axis convention and the up
constraint.
Implementation
static Matrix4 lookAtTransform(Vector3 eye, Vector3 target, {Vector3? up}) =>
_lookAtMatrix(
eye,
target,
up ?? Vector3(0.0, 1.0, 0.0),
Vector3(1.0, 1.0, 1.0),
);