Skip to main content

LookAtComponent.AimVectors

Enum

The "aim" and "up" vectors used with LookAtComponent when determining rotation.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

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

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