LookAtDirection
Specifies the forward direction of a transform.
| Type | Name | Interface Description |
|---|---|---|
| Enum | NegativeX | |
| Enum | NegativeY | |
| Enum | NegativeZ | |
| Enum | X | |
| Enum | Y | |
| Enum | Z |
Examples
NegativeX
let value = APJS.LookAtDirection.NegativeX;
NegativeY
let value = APJS.LookAtDirection.NegativeY;
NegativeZ
let value = APJS.LookAtDirection.NegativeZ;
X
let value = APJS.LookAtDirection.X;
Y
let value = APJS.LookAtDirection.Y;
Z
let value = APJS.LookAtDirection.Z;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use LookAtDirection here
}
onUpdate(deltaTime: number) {
}
}