Physics for Game Developers: Science, Math, and Code For Realistic Effects


If you want to enrich your game’s experience with physics-based realism, the expanded edition of this classic book details physics principles applicable to game development. You’ll learn about collisions, explosions, sound, projectiles, and other effects used in games on Wii, PlayStation, Xbox, smartphones, and tablets. You’ll also get a handle on how to take advantage of various sensors such as accelerometers and optical tracking devices.

Authors David Bourg and Bryan Bywalec ...

See more details below
Paperback (Second Edition)
$32.64 price
(Save 34%)$49.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (12) from $26.10   
  • New (10) from $26.10   
  • Used (2) from $26.10   
Physics for Game Developers: Science, math, and code for realistic effects

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$24.99 price
(Save 41%)$42.99 List Price


If you want to enrich your game’s experience with physics-based realism, the expanded edition of this classic book details physics principles applicable to game development. You’ll learn about collisions, explosions, sound, projectiles, and other effects used in games on Wii, PlayStation, Xbox, smartphones, and tablets. You’ll also get a handle on how to take advantage of various sensors such as accelerometers and optical tracking devices.

Authors David Bourg and Bryan Bywalec show you how to develop your own solutions to a variety of problems by providing technical background, formulas, and a few code examples. This updated book is indispensable whether you work alone or as part of a team.

  • Refresh your knowledge of classical mechanics, including kinematics, force, kinetics, and collision response
  • Explore rigid body dynamics, using real-time 2D and 3D simulations to handle rotation and inertia
  • Apply concepts to real-world problems: model the behavior of boats, airplanes, cars, and sports balls
  • Enhance your games with digital physics, using accelerometers, touch screens, GPS, optical tracking devices, and 3D displays
  • Capture 3D sound effects with the OpenAL audio API
Read More Show Less

Product Details

  • ISBN-13: 9781449392512
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 5/1/2013
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 551
  • Sales rank: 788,623
  • Product dimensions: 6.90 (w) x 9.10 (h) x 1.20 (d)

Meet the Author

David Bourg is a Naval Architect involved in various military and commercial proposal, design, and construction efforts. Since 1998, David has served as an independent consultant working for various regional clients engaged in both commercial and military shipbuilding where he provides design and analysis services including but not limited to concept design, proposal writing, detailed design and analysis, visualization, and software development among other services. He coordinated and led the winning design and proposal effort for the US Coast Guard Point Class (patrol boat) Replacement Program. In 2006, David joined fellow Naval Architect Kenneth Humphreys to form MiNO Marine, LLC, a naval architecture and marine professional services firm.

In addition to Physics for Game Developers, David has published two other books. He earned a PhD in Engineering and Applied Science in 2008 from the University of New Orleans. He has served as an Adjunct Professor at the University of New Orleans School of Naval Architecture and Marine Engineering, where he has taught various courses since 1993.

Ever since his father read A Brief History of Time to him in middle school, Bryan Bywalec wanted to be an astrophysicist. While he will always have a passion for pure physics, he became more and more obsessed in high school with the application of those physical principles he was learning. Having been around sailboats his entire life, his decision to seek a degree in Naval Architecture at the University of New Orleans surprised few.

While working on his degree, Mr. Bywalec was employed as a network administrator for the College of Engineering. Having an office in an electronics lab, he explored the world of enterprise computing and became very interested in high performance clusters, remote administration of desktops, and robotics.

Upon graduating in 2007, he began his career at MiNO Marine, LLC and, under the guidance of David Bourg and Kenneth Humphreys, now focuses on finite element analysis of complex welded steel structures. His structural analysis work depends largely on the accurate approximations of non-linear physical systems. Bryan has completed several computational fluid dynamics simulations of exhaust gases from ship stacks and current flow around offshore structures.

In addition to his work as a naval architect, Bryan strives to create innovative ways to connect everyday objects to various control networks. From unlocking door locks via text message to developing a real time street car tracking program, he constantly searches for opportunities to integrate technology into his life.

Read More Show Less

Table of Contents

Who Is This Book For?;
What We Assume You Know;
Digital Physics;
Arrangement of This Book;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Chapter 1: Basic Concepts;
1.1 Newton’s Laws of Motion;
1.2 Units and Measures;
1.3 Coordinate System;
1.4 Vectors;
1.5 Derivatives and Integrals;
1.6 Mass, Center of Mass, and Moment of Inertia;
1.7 Newton’s Second Law of Motion;
1.8 Inertia Tensor;
1.9 Relativistic Time;
Chapter 2: Kinematics;
2.1 Velocity and Acceleration;
2.2 Constant Acceleration;
2.3 Nonconstant Acceleration;
2.4 2D Particle Kinematics;
2.5 3D Particle Kinematics;
2.6 Kinematic Particle Explosion;
2.7 Rigid-Body Kinematics;
2.8 Local Coordinate Axes;
2.9 Angular Velocity and Acceleration;
Chapter 3: Force;
3.1 Forces;
3.2 Force Fields;
3.3 Friction;
3.4 Fluid Dynamic Drag;
3.5 Pressure;
3.6 Buoyancy;
3.7 Springs and Dampers;
3.8 Force and Torque;
3.9 Summary;
Chapter 4: Kinetics;
4.1 Particle Kinetics in 2D;
4.2 Particle Kinetics in 3D;
4.3 Rigid-Body Kinetics;
Chapter 5: Collisions;
5.1 Impulse-Momentum Principle;
5.2 Impact;
5.3 Linear and Angular Impulse;
5.4 Friction;
Chapter 6: Projectiles;
6.1 Simple Trajectories;
6.2 Drag;
6.3 Magnus Effect;
6.4 Variable Mass;
Rigid-Body Dynamics;
Chapter 7: Real-Time Simulations;
7.1 Integrating the Equations of Motion;
7.2 Euler’s Method;
7.3 Better Methods;
7.4 Summary;
Chapter 8: Particles;
8.1 Simple Particle Model;
8.2 The Basic Simulator;
8.3 Implementing External Forces;
8.4 Implementing Collisions;
8.5 Tuning;
Chapter 9: 2D Rigid-Body Simulator;
9.1 Model;
9.2 The Basic Simulator;
9.3 Tuning;
Chapter 10: Implementing Collision Response;
10.1 Linear Collision Response;
10.2 Angular Effects;
Chapter 11: Rotation in 3D Rigid-Body Simulators;
11.1 Rotation Matrices;
11.2 Quaternions;
11.3 Quaternions in 3D Simulators;
Chapter 12: 3D Rigid-Body Simulator;
12.1 Model;
12.2 Integration;
12.3 Flight Controls;
Chapter 13: Connecting Objects;
13.1 Springs and Dampers;
13.2 Connecting Particles;
13.3 Connecting Rigid Bodies;
Chapter 14: Physics Engines;
14.1 Building Your Own Physics Engine;
Physical Modeling;
Chapter 15: Aircraft;
15.1 Geometry;
15.2 Lift and Drag;
15.3 Other Forces;
15.4 Control;
15.5 Modeling;
Chapter 16: Ships and Boats;
16.1 Stability and Sinking;
16.2 Ship Motions;
16.3 Resistance and Propulsion;
16.4 Maneuverability;
Chapter 17: Cars and Hovercraft;
17.1 Cars;
17.2 Hovercraft;
Chapter 18: Guns and Explosions;
18.1 Projectile Motion;
18.2 Taking Aim;
18.3 Recoil and Impact;
18.4 Explosions;
Chapter 19: Sports;
19.1 Modeling a Golf Swing;
19.2 Billiards;
Digital Physics;
Chapter 20: Touch Screens;
20.1 Types of Touch Screens;
20.2 Step-by-Step Physics;
20.3 Example Program;
20.4 Other Considerations;
Chapter 21: Accelerometers;
21.1 Accelerometer Theory;
21.2 Sensing Orientation;
21.3 Sensing Tilt;
Chapter 22: Gaming from One Place to Another;
22.1 Location-Based Gaming;
22.2 What Time Is It?;
22.3 Location, Location, Location;
Chapter 23: Pressure Sensors and Load Cells;
23.1 Under Pressure;
23.2 Button Mashing;
23.3 Barometers;
Chapter 24: 3D Display;
24.1 Binocular Vision;
24.2 Stereoscopic Basics;
24.3 Types of Display;
24.4 Programming Considerations;
Chapter 25: Optical Tracking;
25.1 Sensors and SDKs;
25.2 Numerical Differentiation;
Chapter 26: Sound;
26.1 What Is Sound?;
26.2 Characteristics of and Behavior of Sound Waves;
26.3 3D Sound;
Vector Operations;
Vector Class;
Vector Functions and Operators;
Matrix Operations;
Matrix3×3 Class;
Matrix Functions and Operators;
Quaternion Operations;
Quaternion Class;
Quaternion Functions and Operators;
General Physics and Dynamics;
Mathematics and Numerical Methods;
Computational Geometry;
Sports Ball Physics;
Hydrostatics and Hydrodynamics;
Automobile Physics;
Real-time Physics Simulations;
Digital Physics;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)