Skip to content

Commit

Permalink
Update CollisionHandler.h
Browse files Browse the repository at this point in the history
Fixing windows warning. Using rounding (before: floor) so slight change in behaviour, but should be more correct now.
  • Loading branch information
razterizer authored Dec 17, 2024
1 parent 4484c44 commit 62271b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dynamics/CollisionHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@ namespace dynamics
void draw_dbg_narrow_phase(ScreenHandler<NR, NC>& sh, Color coll_fg_color = Color::Magenta) const
{
for (const auto& pt : isect_world_positions)
sh.write_buffer("X", pt.r, pt.c, coll_fg_color);
{
auto rc = to_RC_round(pt);
sh.write_buffer("X", rc.r, rc.c, coll_fg_color);
}
}

void update_detection(std::vector<NarrowPhaseCollData>& collision_data, bool verbose = false)
Expand Down

0 comments on commit 62271b9

Please sign in to comment.