Skip to content

FirstPersonController

Defined in: packages/threeplay/src/plugins/camera/types.ts:41

The running first-person behavior.

stop(): void

Defined in: packages/threeplay/src/plugins/camera/types.ts:10

Stops it; the camera stays where it is.

void

CameraController.stop

readonly mode: "follow" | "firstPerson" | "thirdPerson" | "orbit" | "topDown"

Defined in: packages/threeplay/src/plugins/camera/types.ts:8

Which behavior this is.

CameraController.mode


pitch: number

Defined in: packages/threeplay/src/plugins/camera/types.ts:45

Degrees; positive looks up.


yaw: number

Defined in: packages/threeplay/src/plugins/camera/types.ts:43

Degrees; 0 faces −Z, positive turns left. Also written to the target’s rot.y if it has rotate().