Blog

3D XNA Character Controller Example

Jul 21

Written by:
Wednesday, July 21, 2010  RssIcon

For the new DigitalRune Geometry library we have created a simple 3D character controller example (including source code).

A character controller, as understood in this context, is a game engine module that computes the movement of an avatar in a game. The input for the character controller is the desired movement (e.g. “move forward with 5 m/s speed”, or “jump”) and the output is the new corrected avatar position in the 3D game world. The character controller has to apply gravity, avoid penetration of walls and other solid objects, handle stepping up/down slopes and stairs, and more.

Here is a short video of the example:

 

The example source code is free and includes detailed comments.

Links

DigitalRune Geometry (our newly released collision detection library for .NET and XNA)

Download Area (The example source code is included in the DigitalRune Engine download.)


Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel