You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
GodotRestInfoContactResultCallback::addSingleResult now returns normal
`PhysicsDirectSpaceState.get_rest_info()` now provides normals in result Addresses issue 24558
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user