Visuals

  • Health Bars
  • Damage Numbers
  • Weapon Trail
  • Camera Shake
  • Pushback
  • Low Health

Techniques

  • Bone Attachment
  • Smooth Interpolation
  • Reactive Polling
  • UI useFrame
  • Model Container

ECS / Entities

  • Koota
  • Miniplex
  • Zustand Entities

Camera Shake

Source
Instantly rotate the camera on X (pitch) and Z (roll) axes and smoothly return to the base rotation using exponential decay. Useful for visual feedback when the player gets hit.