LookAtMode
Specifies the mode of LookAt.
| Type | Name | Interface Description |
|---|---|---|
| Enum | LookAtDirection | • Function: The object will look towards a specified direction. |
| Enum | LookAtPoint | • Function: The object will look at a specified point in world space. |
Examples
LookAtDirection
let value = APJS.LookAtMode.LookAtDirection;
LookAtPoint
let value = APJS.LookAtMode.LookAtPoint;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use LookAtMode here
}
onUpdate(deltaTime: number) {
}
}