Defined in: packages/engine/src/gameplay/camera/eyeSettle.ts:30
| Property |
Type |
Description |
aim |
Vector3 |
- |
bvh |
MeshBVH | null |
What the eye may not sit behind. Null where nothing blocks. |
deltaSeconds |
number |
- |
eye |
Vector3 |
Where the orbit put the camera, written in place. |
ground |
Pick<Readonly<{ getNormalAt: (position, target) => Vector3; map: Readonly<{ cell: number; hills: Readonly<{ amplitude: number; detail: number; wavelength: number; }>; paths: Readonly<Record<string, Readonly<{ fade: number; halfWidth: number; points: readonly …[]; surface?: … | … | … | …; }>>>; props: Readonly<Record<string, Readonly<{ color: …; kind: …; position: …; scale: …; size: …; yaw: …; }> | Readonly<{ kind: …; position: …; scale: …; yaw: …; }> | Readonly<{ model: …; position: …; scale: …; yaw: …; }>>>; regions: Readonly<Record<string, Readonly<{ center: readonly […, …]; fade: number; hills: Readonly<…>; radius: number; scatter: Readonly<…>; }>>>; rim: number; scatter: Readonly<{ bushRound: number; grassTuft: number; rockBoulder: number; rockFlat: number; seedOffset: number; treeRound: number; treeTall: number; }>; seed: number; size: number; views: Readonly<Record<string, Readonly<{ eye: readonly […, …, …]; fov: number; ortho?: … | …; target: readonly […, …, …]; }>>>; }>; seed: number; segments: number; size: number; getHeightAt: number; getPathDistanceAt: number; getPathSurfaceAt: { surface: NonNullable<"dirt" | "stone" | "sand" | undefined>; weight: number; } | undefined; getRegionWeightsAt: number[]; getSlopeAt: number; }>, "getHeightAt"> | null |
What the eye may not sit under. Null before the ground is spawned. |
settledDistance |
number | null |
Metres the eye stood from the aim last frame, or null on the first, which snaps rather than eases. |