Custom entity UI, math functions, physics triggers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user