LookAtComponent.AimVectors
EnumThe "aim" and "up" vectors used with LookAtComponent when determining rotation.
- Available on all platforms
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.
Index
Enumeration Members
- NegativeXAimNegativeYUp
- NegativeXAimNegativeZUp
- NegativeXAimYUp
- NegativeXAimZUp
- NegativeYAimNegativeXUp
- NegativeYAimNegativeZUp
- NegativeYAimXUp
- NegativeYAimZUp
- NegativeZAimNegativeXUp
- NegativeZAimNegativeYUp
- NegativeZAimXUp
- NegativeZAimYUp
- XAimNegativeYUp
- XAimNegativeZUp
- XAimYUp
- XAimZUp
- YAimNegativeXUp
- YAimNegativeZUp
- YAimXUp
- YAimZUp
- ZAimNegativeXUp
- ZAimNegativeYUp
- ZAimXUp
- ZAimYUp
Example
// 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;
Enumeration Members
NegativeXAimNegativeYUp
NegativeXAimNegativeYUp:
number
-X Aim, -Y Up
NegativeXAimNegativeZUp
NegativeXAimNegativeZUp:
number
-X Aim, -Z Up
NegativeXAimYUp
NegativeXAimYUp:
number
-X Aim, Y Up
NegativeXAimZUp
NegativeXAimZUp:
number
-X Aim, Z Up
NegativeYAimNegativeXUp
NegativeYAimNegativeXUp:
number
-Y Aim, -X Up
NegativeYAimNegativeZUp
NegativeYAimNegativeZUp:
number
-Y Aim, -Z Up
NegativeYAimXUp
NegativeYAimXUp:
number
-Y Aim, X Up
NegativeYAimZUp
NegativeYAimZUp:
number
-Y Aim, Z Up
NegativeZAimNegativeXUp
NegativeZAimNegativeXUp:
number
-Z Aim, -X Up
NegativeZAimNegativeYUp
NegativeZAimNegativeYUp:
number
-Z Aim, -Y Up
NegativeZAimXUp
NegativeZAimXUp:
number
-Z Aim, X Up
NegativeZAimYUp
NegativeZAimYUp:
number
-Z Aim, Y Up
XAimNegativeYUp
XAimNegativeYUp:
number
X Aim, -Y Up
XAimNegativeZUp
XAimNegativeZUp:
number
X Aim, -Z Up
XAimYUp
XAimYUp:
number
X Aim, Y Up
XAimZUp
XAimZUp:
number
X Aim, Z Up
YAimNegativeXUp
YAimNegativeXUp:
number
Y Aim, -X Up
YAimNegativeZUp
YAimNegativeZUp:
number
Y Aim, -Z Up
YAimXUp
YAimXUp:
number
Y Aim, X Up
YAimZUp
YAimZUp:
number
Y Aim, Z Up
ZAimNegativeXUp
ZAimNegativeXUp:
number
Z Aim, -X Up
ZAimNegativeYUp
ZAimNegativeYUp:
number
Z Aim, -Y Up
ZAimXUp
ZAimXUp:
number
Z Aim, X Up
ZAimYUp
ZAimYUp:
number
Z Aim, Y Up