Skip to content

Third-person character

This capstone builds a third-person character: WASD movement on a Rapier Kinematic Character Controller, a mouse-orbit follow camera, and AnimGraph-driven idle/walk/run locomotion — plus pushable physics props. It maps to the shipped third-person example (packages/editor/template/src/examples/third-person/).

  • A character that walks, strafes, and turns under player control.
  • A follow camera that orbits with the mouse.
  • Locomotion animation that blends with movement speed.

Two GameComponents do the work:

  • CharacterController (runs in prePhysics) — owns the Rapier KinematicCharacterController, applies WASD movement + gravity + jump, and drives the AnimGraph speed parameter.
  • CameraTarget (runs in preRender) — owns the orbit camera + pointer-lock, tracking yaw/pitch, and positions the runtime camera behind the character.