The "aim" and "up" vectors used when determining rotation.
LookAtComponent will try to point the Aim
axis of the SceneObject towards the target,
while keeping the Up
axis of the SceneObject pointing towards worldUpVector
.
If disabled, the Component will stop enacting its behavior.
Controls the method of rotation being used.
Adds an additional rotation offset.
Readonly
sceneThe scene object this component is on.
The SceneObject this LookAtComponent targets.
Readonly
uniqueThe vector to be considered the "up" vector when determining rotation.
Returns the SceneObject the component is attached to.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Every frame, LookAtComponent rotates its SceneObject to face towards a target SceneObject.
Example