diff options
author | lawnjelly <lawnjelly@gmail.com> | 2024-01-03 13:24:40 +0000 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2024-05-09 20:41:19 +0100 |
commit | b35264ad95193349c51a9277abe571b711282cfb (patch) | |
tree | 68ba8822cf3f7afdacbad04101fb7631a2f4dc35 /platform/javascript/audio_driver_javascript.cpp | |
parent | c4279fe3e0b27d0f40857c00eece7324a967285f (diff) | |
download | redot-engine-b35264ad95193349c51a9277abe571b711282cfb.tar.gz |
Fix AABB Ray intersection - return inside
* Separates find_intersects from test_intersects for rays, and wraps the former.
* Changes parameter name to "r_intersection_point".
* Fixes broken old version which returned per axis t.
* Returns whether the ray origin is within the AABB.
* Returns intersection point when origin outside.
* Returns "backtracking" intersection point when inside.
* Returns sensible normal when inside.
* Returns valid results on borders.
* Returns robust results dealing with floating point error.
Co-authored-by: Claire Blackshaw <evilkimau@gmail.com>
Diffstat (limited to 'platform/javascript/audio_driver_javascript.cpp')
0 files changed, 0 insertions, 0 deletions