FaceBinding
APJS Script API reference for the FaceBinding class.
| Type | Name | Interface Description |
|---|---|---|
| Variables | anchorType: FaceBindingAnchorType | • Function: The anchor type, default is FaceCenter. |
| Variables | customAnchorPoint: Vector3f | • Function: Custom anchor point offset in standard face mesh local space (cm). <br/> Used only when anchorType is Custom. <br/> Ranges: X[-8, 8] (Left->Right), Y[-9, 11] (Down->Up), Z[-6, 7] (Back->Front). <br/> See FaceBindingAnchorType for preset coordinates and custom suggestions. |
| Variables | faceID: number | • Function: Gets the face ID of the face binding, must be between 1 and 5. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.FaceBinding();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use FaceBinding here
}
onUpdate(deltaTime: number) {
}
}