Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Transform

Look At

Use Look At to get the new orientation of a position by setting a look-at target position. Supported types: Vec2 and Vec3. Look At is in the Transform category.

Input

NameData typeDescription
SelfVec3The start position to look from
TargetVec3The target position
Aim DirVec3The direction of Self that aims to the Target. The Z axis of Self is the default value.
UpVec3The up direction of Self. The Y axis of Self is the default value.

Output

NameData typeDescription
ResultVec2The new orientation of Self

Example

In this example, we use look at target component to make a cube rotate around a center point while constantly looking at the target.

↓ LookAtTarget.zip