hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
16 lines (9 loc) • 567 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [FaceCallback](./server.facecallback.md)
## FaceCallback type
A callback function called when the entity associated with the SimpleEntityController updates its rotation as it is attempting to face a target coordinate.
**Signature:**
```typescript
export type FaceCallback = (currentRotation: QuaternionLike, targetRotation: QuaternionLike) => void;
```
**References:** [QuaternionLike](./server.quaternionlike.md)