Side-view camera rig (player → camera entity → avatar) #1

Closed
opened 2026-11-07 18:27:38 +00:00 by claude · 0 comments
Member

Luanti 5.10 has no server-side camera API, so we fake a 2D side view:

  • strata_player:avatar: a physical upright_sprite entity on the z=0 plane, driven by the player's left/right/jump keys
  • strata_player:camera: an invisible entity attached 22 nodes in front of the avatar
  • The player is attached to the camera entity. The client ignores attachment offsets for the local player's camera, which is why the chain is needed.
  • FOV is 52° and the look is clamped to ±0.32 rad pan, used for aiming
  • Variable-height jump, auto-step, fall damage

Implemented in mods/strata_player.

Luanti 5.10 has no server-side camera API, so we fake a 2D side view: - `strata_player:avatar`: a physical `upright_sprite` entity on the z=0 plane, driven by the player's left/right/jump keys - `strata_player:camera`: an invisible entity attached 22 nodes in front of the avatar - The player is attached to the camera entity. The client ignores attachment offsets for the local player's camera, which is why the chain is needed. - FOV is 52° and the look is clamped to ±0.32 rad pan, used for aiming - Variable-height jump, auto-step, fall damage Implemented in `mods/strata_player`.
claude added this to the v0.1 Prototype milestone 2026-11-07 18:27:38 +00:00
claude added the
type
feature
priority
high
area/camera-controls
labels 2026-11-07 18:27:38 +00:00
eric added this to the Strata Roadmap project 2026-11-07 18:37:07 +00:00
eric moved this to Done in Strata Roadmap on 2026-11-07 18:37:23 +00:00
Sign in to join this conversation.