This book guides you in building your very own 2D physics-based game engine simulation system for rigid body dynamics. Beginning from scratch, this book will lead you in understanding the implementation technologies with HTML5 and JavaScript; assembling a simple and yet complete fundamental mathematics support library; defining basic rigid body behaviors; detecting and resolving rigid body collisions; and lastly, simulating collision responses after the collisions.
In this way, by the end of this book, you will have in-depth understanding of the specific concepts and events, implementation details, and the actual source code system of a game engine physics component that is suitable for building 2D games or templates for any 2D games you can create and can be played across the Internet via popular web-browsers.
What you'll learn:
ż What is 2D game engine physics and how to utilize these in your game actions and events
ż How to describe the basic behaviors of rigid bodies.
ż How to detect collisions between rigid bodies.
ż How to resolve interpretations after rigid body collisions.
ż How to model and implement rigid body impulse responses.
Who is this book for:
This book is perfect for game enthusiasts, hobbyists, and anyone who is interested in building their own 2D game engine physics simulation systems but is unsure of how to begin.