Sign in to follow this  
cebugdev

[Bullet physics] Character controller detect collision force

Recommended Posts

cebugdev    635
HI all,

How can i detect the force of collision applied when using the kinematic character controller of bullet physics library?
Im am the same approach as stated in the 'Contact Information' tutorial on this page.

[url="http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_Callbacks_and_Triggers"]http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_Callbacks_and_Triggers[/url]

the character controller Im using is the default kinematic controller of bullet where it is represented by a ghost object declared
as btPairCachingGhostObject.

the contact manifold was detected between my scene(a rigid body) and the ghost object but
the applied impulse (m_appliedImpulse) of the manifold always returns 0 even there is a collision.

What i am trying to do is detect the impact when my character fall from lets say for example, a tall building.

What do i need to set on the ghost object or on character controller? Did I miss something?

If you guys have any idea on how to do this,
please help..

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this