Skip to main content

Completing the Physics Engine and Rigid Shape Component

  • Chapter
  • First Online:
Building a 2D Game Physics Engine
  • 1795 Accesses

Abstract

In the previous chapter, you have implemented algorithms to detect collisions between rigid circles and rectangles. In addition to the Boolean condition of whether a collision has indeed occurred, the algorithms you have implemented also computed information that tells you important details—the collision information, which includes the interpenetration depth and normal direction. In this chapter, you will further expand the physics engine by using the collision information to correct the interpenetration condition, and learn about simulating collision responses that resemble real-world rigid shape behaviors. Initially, your responses will be in linear motion, and finally you will support objects rotating as a result of collisions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Michael Tanaya, HuaMing Chen, Jebediah Pavleas and Kelvin Sung

About this chapter

Cite this chapter

Tanaya, M., Chen, H., Pavleas, J., Sung, K. (2017). Completing the Physics Engine and Rigid Shape Component. In: Building a 2D Game Physics Engine. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2583-7_4

Download citation

Publish with us

Policies and ethics