O'Reilly logo

Learning AndEngine by Martin Varga

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter dealt with physics in AndEngine. Now, we know that AndEngine is using a port of a popular two-dimensional physics engine called Box2D. Basic terms such as force, impulse, velocity, fixture, restitution, friction, and density were explained. We learned the differences between bodies, their properties, and how the properties influence the final simulation.

In the second part, we added the engine to the game and implemented a way to control the character using tilt and physics. Multiple ways were discussed with their advantages and drawbacks.

In the next chapter, we will add enemies and work with collisions and game events. We will learn how to manipulate the physics bodies and add and remove platforms dynamically. We are also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required