# facing

function in `@dioramajs/model/hotspots`

```ts
import { facing } from '@dioramajs/model/hotspots'
```

The model's own yaw and pitch (radians) that turn the direction `d`, given in the model's space
before its rotation, towards the viewer: `pivot.rotation.set(pitch, yaw, 0)` brings it to +z.

```ts
function facing(d: Vector3): { pitch: number; yaw: number }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `d` | `Vector3` |  |

Defined in [packages/model/src/hotspots.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/hotspots.ts#L58).
