Jump to content
  • Advertisement
Sign in to follow this  

[Bullet physics] Character controller detect collision force

This topic is 2590 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.


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..


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!