8378707f21
Minor refactoring
Run UnitTest / build-and-run-UnitTest (push) Successful in 4s
2024-05-03 18:09:58 +09:00
376ad44e67
Use std::span instead of ptr + size in MinMax fn
...
Note that std::span requires C++20.
2024-05-03 17:54:55 +09:00
9e8c5f0c39
ret std::array not std::vector in get-box-normals
...
"Get Box Normals" function always returns three vectors, so use
std::array instead of std::vector.
Minor changes related to usage of this function.
2024-05-03 17:40:21 +09:00
43ade068c9
Fix internal getting-normals function
...
Translation could have caused errors getting the three normals for the
sides of a box. The internal normals-fetching function was therefore
made more robust.
2024-05-02 13:13:43 +09:00
22f7663f38
Fix SC_SACD_Translate_Mat4(...)
...
Translation Mat4 was missing a "1" in the first element.
2024-05-02 13:12:28 +09:00
7b9f25ca5c
Add check in Sphere/Box collision for same center
2024-05-02 12:32:18 +09:00
2dcb33f39f
Add default constructor for SC_SACD_Generic_Box
2024-05-01 13:35:33 +09:00
097661346d
Replace xyz-axis with Mat4 in GenericBox
2024-04-30 14:00:32 +09:00
ecf5ce1745
Add Mat4 translation function
...
Implemented creating a Mat4 that does translation.
2024-04-29 14:09:49 +09:00
954c48f6f9
Change Mat3 to Mat4
2024-04-29 13:39:59 +09:00
de126aa150
Matrix/Vector multiplication and changes
...
Change Mat3 values to column-major (I think?) order.
Add Matrix/Matrix multiplication and tweak Matrix/Vector multiplication.
Fix Matrix rotation values since Mat3 representation changed.
Added more UnitTest tests.
2024-04-29 13:23:47 +09:00
a194e71d94
Impl Sphere/Generic_Box collision checking
2024-04-29 13:23:47 +09:00
39593ad996
Fix Sphere/AABB collision
2024-04-29 13:23:47 +09:00
919d931b4e
Impl Sphere/Sphere and Sphere/AABB collision
...
TODO: Impl Sphere/Generic-Box collision
2024-04-29 13:23:47 +09:00
2c44fccbb7
Rename lib, rename sources, set up cmake install
2024-04-26 15:52:16 +09:00