My CharacterController

L.E.A.
Posts: 2
Joined: Wed Jun 04, 2008 11:11 am

My CharacterController

Post by L.E.A. »

Hello

There is a CharacterController. He got the update.
In the update upward motion, forward motion and down motion (with a convexSweepTest trace) are executed.
btRigidBody from CharacterContoller is also colliding with dynamical ob-jects.
But sometimes assert triggers in the bullet and one of the objects's matrixes in the world gets values listed as 1#QNAN0.
The object with a broken matrix appears after the stepSimulation execution and this object is a CharacterContoller. What could be wrong?
Why in the example CharacterController is excluded from the collision (setCollisionFlags (btCollisionObject::CF_NO_CONTACT_RESPONSE))?

I'm thankful in advance.
mickey
Posts: 107
Joined: Fri Sep 19, 2008 6:08 pm

Re: My CharacterController

Post by mickey »

the reason with the flag is because the sample handles its own collision, so Bullet won't resolve its own internal collision detection when the kinematic object (the character) collides internally with other Bullet objects.

The kinematic character controller shows how someone can develop a "sliding" character across walls. Though I believe they are implementing soon for it to collide with dynamic objects as well, let's just wait and see for the next releases.