Introduction to Game Physics with Box2D
by: Ian Parberry
Pages: 275 pages
Edition 版本: 1
Language 语言: English
Publisher finelybook 出版社: CRC Press
Released: 2017-07-27
ISBN-10: 113842806X
ISBN-13: 9781138428065
Book Description
Written by a pioneer of game development in academia,Introduction to Game Physics with Box2D covers the theory and practice of 2D game physics in a relaxed and entertaining yet instructional style. It offers a cohesive treatment of the topics and code involved in programming the physics for 2D video games. Focusing on writing elementary game physics code,the first half of the book helps you grasp the challenges of programming game physics from scratch,without libraries or outside help. It examines the mathematical foundation of game physics and illustrates how it is applied in practice through coding examples. The second half of the book shows you how to use Box2D,a popular open source 2D game physics engine. A companion website provides supplementary material,including source code and videos. This book helps you become a capable 2D game physics programmer through its presentation of both the theory and applications of 2D game physics. After reading the book and experimenting with the code samples,you will understand the basics of 2D game physics and know how to use Box2D to make a 2D physics-based game.
Contents
Chapter 1. Read Me First
Part I. Introduction to Game Physics
Chapter 2. Mathematics for Game Physics
Chapter 3. A Rigid Body Physics Game
Chapter 4. A Soft Body Physics Toy
Part II. Game Physics with Box2D
Chapter 5. Getting Started
Chapter 6. A Tale of Three Modules
Chapter 7. The Cannon Game
Chapter 8. The Collision Module
Part III. Appendices
Appendix A. For Math Geeks Only
Appendix B. The Blacke Arte of Program Debugging
Appendix C. There Are,in Fact,Dumb Questions
Appendix D. Bullet Physics