It is know that Bullet is based on constraint approach and impulse based approach. The penetration will not happen theoretically.
But if the the penetration happened. How does the bullet deal with this problem?
In addition, how can I get the value of penetration from Bullet? What are the m_allowedPenetration and the m_penetration_depth in Bullet?
Thank you.
How does the bullet deal with penetration.
-
- Posts: 16
- Joined: Wed Feb 23, 2011 4:54 pm
How does the bullet deal with penetration.
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: How does the bullet deal with penetration.
Bullet has several options how to resolve penetrations. By default it uses Baumgarte post stabilization: it adjusts the target velocity so that the penetration will be resolved eventually.
As an alternative, it can resolve the penetration independent from the velocity, by keeping the position/penetration correction completely separate (split) from the velocity correction. This is called the 'split' impulse.
Thanks,
Erwin
As an alternative, it can resolve the penetration independent from the velocity, by keeping the position/penetration correction completely separate (split) from the velocity correction. This is called the 'split' impulse.
Thanks,
Erwin