Basic Math for Game Development with Unity 3D: A Beginner's Guide to Mathematical Foundations, 2nd Edition

  • 6h 23m
  • Gregory Smith, Kelvin Sung
  • Apress
  • 2023

This book will teach you fundamental mathematical concepts using Unity-based custom examples, explaining the implementations and demonstrating how these concepts are applied in building modern video game functionality. You will learn the theoretical foundation of each concept, and then interact, examine, and modify the implementation to inspect the effects.

Basic Math for Game Development with Unity 3D begins by explaining points in the 3D Cartesian Coordinate system. From there, you’ll gain insight into vectors and details of dot and cross products, quaternions, rotation and decomposition of vectors. These basic mathematical foundations are illustrated through Unity-based example implementations. Associated with these concept presentations are separate examples of how the concepts are applied in creating typical video game functionality, such as collision support, motion simulations, autonomous behaviors, shadow approximations, and reflections off surfaces with arbitrary orientations.

After completing this book, you will have a thorough understanding of core mathematical concepts and how they are used to create compelling gameplay.

What You Will Learn

  • Understand the basic concepts of points and vectors, and their applications in game development
  • Grasp the details of autonomous behaviors such as facing a target, following and chasing an object, and more
  • Apply mathematical concepts in implementing modern video game functionality such as ray casting, collision, and motion control

Who This Book Is For

Game enthusiasts, hobbyists, and anyone else who is interested in the implementation of interactive games but needs basic mathematical background or could just use a refresher with modern examples.

About the Author

Kelvin Sung is a Professor with the Computing and Software Systems Division at University of Washington Bothell (UWB). He received his Ph.D. in Computer Science from the University of Illinois at Urbana‐Champaign. Kelvin's background is in computer graphics, hardware, and machine architecture. He came to UWB from Alias|Wavefront (now part of Autodesk), where he played a key role in designing and implementing the Maya Renderer, an Academy Award‐winning image generation system. At UWB, funded by Microsoft Research and the National Science Foundation, Kelvin’s work focuses on the intersection of video game mechanics, solutions to real‐world problems, and mobile technologies. Together with his students and colleagues, Kelvin has co‐authored six books: one in computer graphics and the others in 2D game engines with Apress.

Gregory Smith is a software engineer at Virtual Heroes, a company that focuses on creating training and simulation software in Unreal Engine. He received his undergraduate degree in Computer Science from Northwest Nazarene University in 2018 and earned a Masters of Computer Science and Software Engineering degree from the University of Washington Bothell in 2020. Gregory also owns his own game company, Plus 2 Studios, which he works on in his spare time.

In this Book

  • Introduction
  • Introduction and Learning Environment
  • Intervals and Bounding Boxes
  • Distances and Bounding Spheres
  • Vectors
  • Vector Dot Products
  • Vector Cross Products and 2D Planes
  • Axis Frames and Vector Components
  • Quaternions and Rotations
  • Conclusion