© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
K. Sung, G. SmithBasic Math for Game Development with Unity 3Dhttps://doi.org/10.1007/978-1-4842-9885-5_3

3. Distances and Bounding Spheres

Kelvin Sung1   and Gregory Smith2
(1)
Bothell, WA, USA
(2)
Caldwell, ID, USA
 
After completing this chapter, you will be able to
  • Compute the distance between any two positions

  • Define bounding spheres for objects

  • Perform inside-outside tests for bounding spheres

  • Detect collisions between bounding spheres

  • Appreciate the strengths and weaknesses of bounding spheres

Introduction

Now that you have more familiarity with the Unity environment and the learning tools that this book utilizes, it is time to review some slightly ...

Get Basic Math for Game Development with Unity 3D: A Beginner's Guide to Mathematical Foundations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.