Skip to content

Commit ac6a841

Browse files
authored
Merge pull request #39 from CleanCut/fix-collider-bug
Fix collider example utility not re-rendering the collider lines
2 parents 51e28da + 2faca9c commit ac6a841

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<!-- next-header -->
22
## [Unreleased] - ReleaseDate
33

4+
### Fixed
5+
6+
- The `collider` example once again properly regenerates the visualization for circle colliders whenever they are created or altered.
7+
48
## [5.0.0] - 2022-03-12
59

610
### BREAKING CHANGES

examples/collider.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ fn game_logic(engine: &mut Engine, game_state: &mut GameState) {
158158
KeyCode::C,
159159
]) {
160160
sprite.collider = Collider::circle(game_state.circle_radius);
161+
sprite.collider_dirty = true;
161162
}
162163
// Let the user know whether or not their collider is currently convex
163164
let convex = engine.texts.get_mut("convex").unwrap();

0 commit comments

Comments
 (0)