1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Add ability to get barycentric coordinates from ray

This commit is contained in:
PrecisionRender
2023-03-05 15:59:22 -06:00
parent 262d1eaa63
commit af7f787c6e
16 changed files with 78 additions and 30 deletions

View File

@@ -362,6 +362,7 @@ Dictionary PhysicsDirectSpaceState3D::_intersect_ray(const Ref<PhysicsRayQueryPa
Dictionary d;
d["position"] = result.position;
d["normal"] = result.normal;
d["face_index"] = result.face_index;
d["collider_id"] = result.collider_id;
d["collider"] = result.collider;
d["shape"] = result.shape;