Character controller and more

oBFusCATed
Posts: 3
Joined: Tue Sep 30, 2008 9:51 pm

Character controller and more

Post by oBFusCATed »

Hello,

I have successfully integrated Bullet in my game engine in the recent weeks.
I've implemented kinematic character controller (my game is third person game) 99% similar to the one in the CharacterDemo.
It works good but I need to enhance it to suit my needs:
1) I need to get the roll and pitch angles of the ground under my character, so I can input them to my animations system. The animation system will use this angles to generate correct climbing movements.
2) When my character is standing on an edge and the vertical geometry is inclined on less that 90 degrees, the character is not falling. He floats in the air. I suppose, I should do some raycasting, to test if there is ground under my characters feet (some code snippet or demo name will be highly appreciated)?
3) I have a platform moving in the XZ plane. The platform is kinematic object controlled by a script. When my character steps on the platform it does not move with it, his XZ coordinates doesn't change. What should I do to make him stay on the platform?

Best regards,
Teodor Petrov