Third-Person Camera

Implemented

This feature is fully implemented.

Orbit camera that follows the entity at a configurable distance, with scroll wheel zoom.

How It Works

When Camera.Mode = 0 (third-person, default):

  1. Orbit distance is calculated from the offset vector length
  2. Scroll wheel adjusts the orbit distance, clamped between MinDistance and MaxDistance
  3. Yaw and Pitch define spherical coordinates around the entity
  4. The camera eye position orbits around the entity's Transform position

Camera Properties

FieldTypeDefaultDescription
Modeint00 = third-person (default), 1 = first-person
MinDistancefloat1Minimum zoom distance
MaxDistancefloat20Maximum zoom distance
ZoomSpeedfloat2Scroll wheel zoom sensitivity
OffsetX/Y/Zfloat0, 0, 3Offset vector; length = initial orbit distance

Controls

InputAction
Q / EOrbit left / right (yaw)
R / FOrbit up / down (pitch)
Mouse movement (when locked)Free-look orbit
Scroll wheelZoom in / out
ESCToggle cursor lock
TABSwitch to first-person mode