Spatial.lookAt

Rotates itself so that the local -Z axis points towards the target position. The transform will first be rotated around the given up vector, and then fully aligned to the target by a further rotation around an axis perpendicular to both the target and up vectors. Operations take place in global space.

struct Spatial
@nogc nothrow
void
lookAt
(
in Vector3 target
,
in Vector3 up
)

Meta