Skip to content

Commit

Permalink
SpriteHandler_examples.h:
Browse files Browse the repository at this point in the history
* Added debug drawing for narrow phase.
  • Loading branch information
razterizer committed Nov 5, 2024
1 parent b25f05c commit aad7678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Examples/SpriteHandler_examples.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ bool use_dynamics_system = true;
bool dbg_draw_sprites = false;
bool dbg_draw_rigid_bodies = false;
bool dbg_draw_broad_phase = false;
bool dbg_draw_narrow_phase = false;

namespace sprite_handler
{
Expand Down Expand Up @@ -292,6 +293,8 @@ namespace sprite_handler
dyn_sys.draw_dbg(sh);
if (dbg_draw_sprites)
sprh.draw_dbg_pts(sh, anim_frame);
if (dbg_draw_narrow_phase)
coll_handler.draw_dbg_narrow_phase(sh);
sprh.draw(sh, anim_frame);
if (dbg_draw_sprites)
sprh.draw_dbg_bb(sh, anim_frame);
Expand Down

0 comments on commit aad7678

Please sign in to comment.