Custom entity UI, math functions, physics triggers

This commit is contained in:
2025-03-30 23:22:21 +02:00
parent 7428ee7fed
commit 06995fbd05
4 changed files with 48 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ physics_step :: (scene: *Scene, timestep: float) {
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);
add_trigger_overlap_if_new(other_e, e);
}
} else {
point := gjk(e.collider, other_e.collider);