Table of Contents

Physics engine

The Citrus Engine supports Box2D and Nape physics engine. Those engines are top gun features to make complex game behavior: collision detection, real physics simulation, raycasting, … You should have a look on their documentation for understanding the basis of a physics engine.

Box2D or Nape?

This has been discussed many time. Both have advantages and inconvenients. From features point of view, they have the same. However those are some details to help you to pick the one you need:

Box2D

Nape

Getting started with a physics engine

Thanks to the Platformer Kit, you are able to see an implementation of physics objects having different behaviors. It is easiest to learn physics engine with living examples.