Skip to main content

LookAtWorldUp

Defines the world-up vector for the look-at calculation.

TypeNameInterface Description
EnumObjectX

• Function: Use the object's positive X-axis as the world up vector.

EnumObjectY

• Function: Use the object's positive Y-axis as the world up vector.

EnumObjectZ

• Function: Use the object's positive Z-axis as the world up vector.

EnumSceneX

• Function: Use the scene's positive X-axis as the world up vector.

EnumSceneY

• Function: Use the scene's positive Y-axis as the world up vector.

EnumSceneZ

• Function: Use the scene's positive Z-axis as the world up vector.

EnumTargetX

• Function: Use the target's positive X-axis as the world up vector.

EnumTargetY

• Function: Use the target's positive Y-axis as the world up vector.

EnumTargetZ

• Function: Use the target's positive Z-axis as the world up vector.

Examples​

ObjectX​

let value = APJS.LookAtWorldUp.ObjectX;

ObjectY​

let value = APJS.LookAtWorldUp.ObjectY;

ObjectZ​

let value = APJS.LookAtWorldUp.ObjectZ;

SceneX​

let value = APJS.LookAtWorldUp.SceneX;

SceneY​

let value = APJS.LookAtWorldUp.SceneY;

SceneZ​

let value = APJS.LookAtWorldUp.SceneZ;

TargetX​

let value = APJS.LookAtWorldUp.TargetX;

TargetY​

let value = APJS.LookAtWorldUp.TargetY;

TargetZ​

let value = APJS.LookAtWorldUp.TargetZ;

Use Case​

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use LookAtWorldUp here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies