LookAtComponent.AimVectors
Lens Studio v1.6.0+
Outer Class: LookAtComponent
Description
The “aim” and “up” vectors used with LookAtComponent 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
.
Enum Value | Description |
---|---|
LookAtComponent.AimVectors.XAimYUp |
X Aim, Y Up |
LookAtComponent.AimVectors.XAimZUp |
X Aim, Z Up |
LookAtComponent.AimVectors.YAimXUp |
Y Aim, X Up |
LookAtComponent.AimVectors.YAimZUp |
Y Aim, Z Up |
LookAtComponent.AimVectors.ZAimXUp |
Z Aim, X Up |
LookAtComponent.AimVectors.ZAimYUp |
Z Aim, Y Up |
LookAtComponent.AimVectors.XAimNegativeYUp |
X Aim, -Y Up |
LookAtComponent.AimVectors.XAimNegativeZUp |
X Aim, -Z Up |
LookAtComponent.AimVectors.YAimNegativeXUp |
Y Aim, -X Up |
LookAtComponent.AimVectors.YAimNegativeZUp |
Y Aim, -Z Up |
LookAtComponent.AimVectors.ZAimNegativeXUp |
Z Aim, -X Up |
LookAtComponent.AimVectors.ZAimNegativeYUp |
Z Aim, -Y Up |
LookAtComponent.AimVectors.NegativeXAimYUp |
-X Aim, Y Up |
LookAtComponent.AimVectors.NegativeXAimZUp |
-X Aim, Z Up |
LookAtComponent.AimVectors.NegativeYAimXUp |
-Y Aim, X Up |
LookAtComponent.AimVectors.NegativeYAimZUp |
-Y Aim, Z Up |
LookAtComponent.AimVectors.NegativeZAimXUp |
-Z Aim, X Up |
LookAtComponent.AimVectors.NegativeZAimYUp |
-Z Aim, Y Up |
LookAtComponent.AimVectors.NegativeXAimNegativeYUp |
-X Aim, -Y Up |
LookAtComponent.AimVectors.NegativeXAimNegativeZUp |
-X Aim, -Z Up |
LookAtComponent.AimVectors.NegativeYAimNegativeXUp |
-Y Aim, -X Up |
LookAtComponent.AimVectors.NegativeYAimNegativeZUp |
-Y Aim, -Z Up |
LookAtComponent.AimVectors.NegativeZAimNegativeXUp |
-Z Aim, -X Up |
LookAtComponent.AimVectors.NegativeZAimNegativeYUp |
-Z Aim, -Y Up |
Examples
// Set aimVectors to [-Z Aim, Y Up]
// (Useful for aiming the camera since it faces towards -Z)
//@input Component.LookAtComponent lookAt
script.lookAt.aimVectors = LookAtComponent.AimVectors.NegativeZAimYUp;
Still Looking for help?
Visit Support