Page 1 of 1

Having a Kinematic btGhostObject collide with btRigidBody

Posted: Fri Sep 13, 2013 7:48 am
by BigHatLogan
Hello,

I have a character that is a btPairCachingGhostObject. It is controlled by a btKinematicCharacterController using setWalkDirection();

From what I understand ghost objects do not effect rigid bodies. My current ghost object collides with them but doesn't push them or anything.

I'm wondering how this can be achieved?

I thought that maybe I have a dynamic object (rigid body) that the ghost object has it's world transform set to every frame but then I can't control the dynamic object with the btKinematicCharacterController.

Should I be using something other than btKinematicCharacterController? Or is there something else I should do?

Thanks