Commit Graph

22 Commits

Author SHA1 Message Date
orange 68f4c8cc72 added nodiscard 2026-03-03 09:38:05 +03:00
orange 2dafc8a49d added additional method 2026-03-03 09:22:11 +03:00
orange 52687a70c7 fixed formating 2026-02-27 07:41:05 +03:00
orange 211e4c3d9b optimization 2026-02-26 16:19:54 +03:00
orange 74dc2234f7 fixed collider when rotated 2026-02-26 16:17:41 +03:00
orange c70eeab9c6 update 2025-12-06 14:30:44 +03:00
orange 70c64f765b added collider interface 2025-12-06 13:56:25 +03:00
orange c5ec098ade fix 2025-11-29 16:37:30 +03:00
orange 6edfb93d09 refactored using stuff 2025-11-29 16:35:43 +03:00
orange 09263b390f improved mesh class 2025-11-29 16:28:06 +03:00
orange 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
orange 14f007047a added epa 2025-11-13 15:57:38 +03:00
orange 9783a63c9b forgot keyname 2025-11-09 23:23:13 +03:00
orange 7d6309c0dd style fix 2025-11-09 22:27:04 +03:00
orange 8f1998b0c5 removed redundant headers 2025-11-09 22:25:29 +03:00
orange 353fb290b7 added mesh class, added mesh trair 2025-11-09 22:10:56 +03:00
orange 4fe001b102 add mesh class 2025-11-09 21:28:00 +03:00
orange a9d60675f3 Corrects transform order for collider
Reorders the transform application to translation, scale, then rotation.

This ensures the collider’s world matrix is constructed correctly, preventing potential scaling or rotation issues in the GJK algorithm being developed on this branch.
2025-11-09 17:15:01 +03:00
orange e1ff9efc91 Adds mesh scaling to mesh collider
Updates the mesh collider to include a scale parameter, allowing for non-uniform scaling of the collision mesh.

This provides more flexibility in defining collision shapes and supports a wider range of scenarios.
2025-11-09 17:02:07 +03:00
orange 8875157c79 Refactor: Simplify GJK simplex handling
Removes the separate `Simplex` class and integrates its functionality directly into the `GjkAlgorithm`. This simplifies the code and reduces unnecessary overhead.

Updates tests to align with refactored implementation.
2025-11-09 16:02:13 +03:00
orange 727a9cc07e patch 2025-11-09 14:23:34 +03:00
orange 8f054316fc Implements GJK collision detection
Adds GJK algorithm implementation for detecting collisions between mesh colliders.

Includes mesh collider definition and unit tests for basic collision detection.

Provides a foundation for more complex collision handling and physics interactions.
2025-11-09 14:04:01 +03:00