Commit Graph

368 Commits

Author SHA1 Message Date
cac97eb23d removed nesting 2025-12-14 11:08:06 +03:00
ec6808c8f2 added const 2025-12-14 11:06:15 +03:00
37ce7f41e5 removed double size reserve 2025-12-14 11:05:24 +03:00
9c9546d3e0 improved readability 2025-12-14 10:59:38 +03:00
bc593ae3d0 extracted to methdod 2025-12-14 10:42:23 +03:00
d5217873a1 added nodiscard 2025-12-14 10:39:23 +03:00
5df50b6310 decomposed into method 2025-12-14 10:26:36 +03:00
c7eb9e0074 removed useless comment 2025-12-14 10:18:58 +03:00
f7cb3a9de2 style fix 2025-12-14 09:53:12 +03:00
35bea50e36 renamed stuff 2025-12-14 09:50:46 +03:00
3b4a015783 improved pmr stuff 2025-12-13 00:06:45 +03:00
381edef9ea added missing include 2025-12-12 18:34:56 +03:00
7cd49fbca1 added check method 2025-12-09 10:21:54 +03:00
39ccf471b1 reverted is out of bounds check + added extra test 2025-12-09 10:06:25 +03:00
006911914c returned stuff back 2025-12-09 09:31:22 +03:00
21c1b2fbdb hot fix 2025-12-09 09:26:55 +03:00
c215a0a265 fixed bug due to on screen ndc check 2025-12-09 07:53:52 +03:00
56ae33bc5f fixed naming 2025-12-06 14:49:30 +03:00
ccfa9461c9 removed file 2025-12-06 14:34:20 +03:00
c70eeab9c6 update 2025-12-06 14:30:44 +03:00
39ed4e50d2 fix 2025-12-06 13:56:25 +03:00
70c64f765b added collider interface 2025-12-06 13:56:25 +03:00
59bbf31820 fix 2025-12-04 05:08:01 +03:00
6b54c790fc patch 2025-12-04 05:02:54 +03:00
5dff27ac8d fix 2025-12-04 05:01:52 +03:00
098d8af7b6 replaced with bool 2025-12-04 04:52:22 +03:00
e4e40c13d8 oops 2025-12-04 04:47:34 +03:00
40f57c5ff8 added nodiscard + static 2025-12-04 04:46:00 +03:00
eab040ab77 fixed typo 2025-12-04 04:45:15 +03:00
343f98490f tweak 2025-12-04 04:38:44 +03:00
46c65157fe replaced with emplace 2025-12-03 14:11:29 +03:00
e3f4de9197 back to static 2025-12-03 13:34:35 +03:00
d786eda33a switched to shared_ptr 2025-12-03 13:30:05 +03:00
57398efb31 added poly allocators 2025-12-03 09:52:53 +03:00
3471b44f9b fixed uv type 2025-12-01 05:03:43 +03:00
8ff358df82 fixed somebugs, improved tests 2025-11-29 21:24:45 +03:00
2e282d2732 changed ebo type 2025-11-29 16:49:19 +03:00
c5ec098ade fix 2025-11-29 16:37:30 +03:00
6edfb93d09 refactored using stuff 2025-11-29 16:35:43 +03:00
2d874f50a5 added conecpt to method 2025-11-29 16:33:31 +03:00
5a3f4cc330 added template arg to Vertex struct 2025-11-29 16:31:24 +03:00
09263b390f improved mesh class 2025-11-29 16:28:06 +03:00
4c62e18042 added std::optional 2025-11-13 21:25:45 +03:00
f41a4596fd Calculates penetration vector for EPA algorithm
Adds `penetration_vector` to the `epa_result` struct to represent the direction and magnitude of penetration.

This allows for more accurate collision response calculations and simplifies access to penetration information.

Updates both the early-exit and iterative EPA calculations within `epa_algorithm.hpp` to compute and store the penetration vector, factoring in the relative origin of the colliding meshes.
2025-11-13 21:19:09 +03:00
788fdff7ef made ref 2025-11-13 17:34:39 +03:00
bb174e1137 Refactors collision detection with GJK and EPA
This commit refactors the collision detection pipeline to utilize a more standard GJK algorithm and simplifies the EPA implementation.

Removes the custom `GjkAlgorithmWithSimplex` in favor of the standalone `GjkAlgorithm`. This streamlines the collision detection process and enhances code clarity.

Updates unit tests to align with the new GJK implementation, ensuring continued functionality and correctness.
2025-11-13 16:39:26 +03:00
8d4f76e84d Refactors vertex parameter name
Updates the `make_face` function to use `vertexes` instead of `verts` for clarity and consistency in naming conventions.
2025-11-13 16:16:23 +03:00
c274bd28c9 Refactor EPA algorithm for clarity
Improves code organization and readability within the EPA algorithm implementation.

Changes include renaming variables for better semantic meaning (e.g., `verts` to `vertexes`), adding `final` specifiers to structs for clarity, and enhancing function signatures with `[[nodiscard]]` where appropriate.

These refactorings aim to enhance maintainability and understanding of the code without altering its core functionality.
2025-11-13 16:15:45 +03:00
7efe1e54d4 Refactors face initialization
Replaces `push_back` with `emplace_back` when initializing faces in the EPA algorithm. This avoids unnecessary copying and improves performance during face creation.
2025-11-13 16:07:57 +03:00
3b80805a7e Refactors EPA algorithm loop
Replaces the `for(;;)` loop in the EPA algorithm with a `while(true)` loop for improved readability and clarity.

This change enhances the maintainability of the code without altering its functionality.
2025-11-13 16:06:18 +03:00