Skip to content

Commit

Permalink
Fix ceiling slope hang
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Sep 9, 2024
1 parent 9f29715 commit ff7dab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collision/collision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool rectangle_aatriangle(Constraints* constraints, const Rectf& rect,

Vector outvec = normal * (depth + 0.2f);

const float RDELTA = 3;
const float RDELTA = 1.5f;
if (p1.x < area.get_left() - RDELTA || p1.x > area.get_right() + RDELTA
|| p1.y < area.get_top() - RDELTA || p1.y > area.get_bottom() + RDELTA) {
set_rectangle_rectangle_constraints(constraints, rect, area);
Expand Down

0 comments on commit ff7dab5

Please sign in to comment.