FaceBindingAnchorType
Face binding anchor types with corresponding vertex indices in standard face mesh.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Chin | • Function: Chin, coordinates: (0, -7.581, 5.6). |
| Enum | Custom | • Function: Custom anchor. Uses coordinates from |
| Enum | FaceCenter | • Function: Face center, coordinates: (0, 0, 0). Best default for general face tracking. |
| Enum | Forehead | • Function: Forehead, coordinates: (0, 9.74, 3.468). |
| Enum | LeftEarlobe | • Function: Left earlobe, coordinates: (-7.208, -1.843, -4.141). Behind the face plane. |
| Enum | LeftEye | • Function: Left eye, coordinates: (-2.965, 1.806, 4.024). |
| Enum | MouthCenter | • Function: Mouth center, coordinates: (0, -3.978, 5.621). Use for lip/nose-ring effects. |
| Enum | RightEarlobe | • Function: Right earlobe, coordinates: (7.208, -1.843, -4.141). Behind the face plane. |
| Enum | RightEye | • Function: Right eye, coordinates: (2.959, 1.801, 4.020). |
Examples
Chin
let value = APJS.FaceBindingAnchorType.Chin;
Custom
let value = APJS.FaceBindingAnchorType.Custom;
FaceCenter
let value = APJS.FaceBindingAnchorType.FaceCenter;
Forehead
let value = APJS.FaceBindingAnchorType.Forehead;
LeftEarlobe
let value = APJS.FaceBindingAnchorType.LeftEarlobe;
LeftEye
let value = APJS.FaceBindingAnchorType.LeftEye;
MouthCenter
let value = APJS.FaceBindingAnchorType.MouthCenter;
RightEarlobe
let value = APJS.FaceBindingAnchorType.RightEarlobe;
RightEye
let value = APJS.FaceBindingAnchorType.RightEye;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use FaceBindingAnchorType here
}
onUpdate(deltaTime: number) {
}
}