Merge pull request #24565 from daniel-abbott/bullet_rest_info_return_normals_fix
`GodotRestInfoContactResultCallback::addSingleResult` now returns normal
This commit is contained in:
commit
d13c292c1a
1 changed files with 1 additions and 0 deletions
|
@ -304,6 +304,7 @@ btScalar GodotRestInfoContactResultCallback::addSingleResult(btManifoldPoint &cp
|
|||
colObj = static_cast<CollisionObjectBullet *>(colObj1Wrap->getCollisionObject()->getUserPointer());
|
||||
m_result->shape = cp.m_index1;
|
||||
B_TO_G(cp.getPositionWorldOnB(), m_result->point);
|
||||
B_TO_G(cp.m_normalWorldOnB, m_result->normal);
|
||||
m_rest_info_bt_point = cp.getPositionWorldOnB();
|
||||
m_rest_info_collision_object = colObj1Wrap->getCollisionObject();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue