You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
bullet: Sync with current upstream master branch
This updates our local copy to commit 5ec8339b6fc491e3f09a34a4516e82787f053fcc. We need a recent master commit for some new features that we use in Godot (see #25543 and #28909). To avoid warnings generated by Bullet headers included in our own module, we include those headers with -isystem on GCC and Clang. Fixes #29503.
This commit is contained in:
@@ -18,7 +18,7 @@ subject to the following restrictions:
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
/*
|
||||
Author: Francisco Len N<EFBFBD>jera
|
||||
Author: Francisco Leon Najera
|
||||
Concave-Concave Collision
|
||||
|
||||
*/
|
||||
@@ -590,14 +590,16 @@ void btGImpactCollisionAlgorithm::gimpact_vs_shape(const btCollisionObjectWrappe
|
||||
}
|
||||
|
||||
btCollisionObjectWrapper ob0(body0Wrap, colshape0, body0Wrap->getCollisionObject(), body0Wrap->getWorldTransform(), m_part0, m_triface0);
|
||||
const btCollisionObjectWrapper* prevObj0 = m_resultOut->getBody0Wrap();
|
||||
const btCollisionObjectWrapper* prevObj;
|
||||
|
||||
if (m_resultOut->getBody0Wrap()->getCollisionObject() == ob0.getCollisionObject())
|
||||
{
|
||||
prevObj = m_resultOut->getBody0Wrap();
|
||||
m_resultOut->setBody0Wrap(&ob0);
|
||||
}
|
||||
else
|
||||
{
|
||||
prevObj = m_resultOut->getBody1Wrap();
|
||||
m_resultOut->setBody1Wrap(&ob0);
|
||||
}
|
||||
|
||||
@@ -610,7 +612,15 @@ void btGImpactCollisionAlgorithm::gimpact_vs_shape(const btCollisionObjectWrappe
|
||||
{
|
||||
shape_vs_shape_collision(&ob0, body1Wrap, colshape0, shape1);
|
||||
}
|
||||
m_resultOut->setBody0Wrap(prevObj0);
|
||||
|
||||
if (m_resultOut->getBody0Wrap()->getCollisionObject() == ob0.getCollisionObject())
|
||||
{
|
||||
m_resultOut->setBody0Wrap(prevObj);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_resultOut->setBody1Wrap(prevObj);
|
||||
}
|
||||
}
|
||||
|
||||
shape0->unlockChildShapes();
|
||||
|
||||
Reference in New Issue
Block a user