Crystal Space: 4.2.3 Simple Tutorial 3: Map Loading, Collision Detection

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 4.2.3 Simple Tutorial 3: Map Loading, Collision Detection

This tutorial continues on tutorial one. Here we will learn how to load a map from a file instead of creating the geometry programmatically. You can find a fully-commented version of this tutorial's source code in the Crystal Space source directory at ``CS/apps/tutorial/simpmap'`.

This tutorial features (in addition to what is explained in simple1 tutorial):

- Creating geometry by loading a map file using `iLoader::LoadMap()`.
- Setting up collision detection for the loaded map using `csColliderHelper::InitializeCollisionWrappers()`.
- Doing movement and collision detection using the `csColliderActor` class.
- Finding a starting position in the map file using `iEngine::GetCameraPositions()`.

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ]

This document was generated using texi2html 1.76.