Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug lines for colliders #9

Merged
merged 7 commits into from
Aug 8, 2021
Merged

Add debug lines for colliders #9

merged 7 commits into from
Aug 8, 2021

Conversation

cdsupina
Copy link
Contributor

@cdsupina cdsupina commented Aug 7, 2021

Added debug lines using https://github.com/toqozz/bevy_debug_lines

There is still an issue with the debug lines being drawn before the rapier computes the position of the player, but for now, this is fine.

Debug lines only appear in debug builds (not with cargo run --release).

#5

@cdsupina cdsupina added this to the Port to Bevy milestone Aug 7, 2021
@cdsupina cdsupina requested a review from tigleym August 7, 2021 20:48
}
}

fn draw_debug_collider_cuboid(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is probably a good case to replace this with a macro, but I don't know if I'm ready to try that yet.

@cdsupina cdsupina mentioned this pull request Aug 7, 2021
28 tasks
@cdsupina cdsupina merged commit 3785b3e into main Aug 8, 2021
@cdsupina cdsupina deleted the cdsupina/debug_lines branch September 24, 2021 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants