Learn

Chapter 07 Collision & World Queries

#068 Sphere Trace

Your sword swing misses an enemy it clearly touched? Your trace is too thin.

  • 1:12 video
  • Written lesson
  • Beginner

Free for everyone from 19 Nov 2026, 00:00 CET

Video lesson: Sphere Trace, 1:12

A trace with thickness

A line trace has no thickness. Small or moving targets slip right by.

Sphere Trace By Channel sweeps a sphere from Start to End. The pins match Line Trace, plus one more: Radius, in centimeters. It returns the first blocking hit anywhere along that swept volume.

  • Now Location and Impact Point differ. Location is the sphere’s center at the hit. Impact Point is where its surface touched.
  • Distance is measured to Location, not to Impact Point.

Example: a sword swing

The swing is traced forward from the hand.

  • A line trace slips past the enemy’s shoulder, and misses.
  • Switch to Sphere Trace, Radius forty, and the same swing connects. That means forty centimeters in every direction around the line.

Spawn the hit effect at Impact Point, touching the enemy’s body. Location would float in midair.

Start the sweep inside a wall, and you get Initial Overlap: Time and Distance are zero.

Tips

  • Keep the radius close to the weapon’s real size. A huge sphere hits things the player never aimed for.
  • Capsule Trace and Box Trace work the same way, with their own shape size.

In short

Need some forgiveness? Sweep a shape, not just a line.

Covered in this lesson

  • Sphere Trace By Channel
  • Radius
  • Impact Point
  • Location
  • Initial Overlap
  • Capsule Trace
  • Box Trace

Newsletter

Development updates are coming to your inbox.

The newsletter opens soon. Until then, new lessons, tools and Beach Hunters progress appear first on our channels, linked below.