Tutorial 2: Enabling collision to a character

In this tutorial you are going to learn how to:

  • Enable the Collision Detection System
  • Set collision properties for a 3D entity


We are going to expand the project from the tutorial Your First Character by enabling Collision Detection to the entities.

In the previous tutoral, you learned how to control the astronaut with the joystick (mouse). The astronaut walked around the screen as if it was not affected by gravity.

In this tutorial, we are going to add a bit more realism by allowing gravity to act on the character. If the astronaut is not standing on top of the island, then it will fall as shown in the following video.


Source Code

The files for this tutorial can be found here.

Let's begin: