• Advertisement
Sign in to follow this  

[Bullet physics] Character controller detect collision force

This topic is 2470 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

http://bulletphysics.org/mediawiki-1.5.8/index.php/Collision_Callbacks_and_Triggers

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
Advertisement
Sign in to follow this  

  • Advertisement