Collision between characters

ekulrek
Posts: 1
Joined: Sat Apr 02, 2011 3:38 pm

Collision between characters

Post by ekulrek »

Hi,

I am trying to learn how to implement characters in the style of a 3rd person action adventure game (e.g. Ratchet and Clank). I have looked at the AppCharacterDemo, as this seems to be the place to start, and so far, so good.

Now I am trying to add a second character (e.g. an enemy). I have done this by creating a second character controller and ghost object, and he's standing in the world as expected.

However, while the characters collide with the world and the dynamic objects you can shoot at them with the mouse in the demo, they do not collide with each other. I am unsure of how/where to check for and resolve collision between multiple characters. I would like them to collide and be able to push each other around when doing so.

Can anybody point me in the right direction, or perhaps offer sample code for how to make the characters collide?

Thanks,

Luke