Fixed for compiler version 0.2.012

This commit is contained in:
2025-05-22 22:13:14 +02:00
parent 721c6079bb
commit 69bafff6e9
7 changed files with 21 additions and 20 deletions

View File

@@ -267,7 +267,7 @@ physics_step :: (scene: *Scene, timestep: float) {
if other_e.flags & .COLLISION {
if other_e.collider.type == .AABB {
inv_matrix := inverse(other_e.transform.model_matrix);
success :, inv_matrix := inverse(other_e.transform.model_matrix);
aabb := other_e.collider.aabb;
if point_inside_aabb(aabb, transform_position(e.transform.position, inv_matrix)) {
add_trigger_overlap_if_new(other_e, e);