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

Debug render contact normals #308

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Debug render contact normals #308

merged 1 commit into from
Jan 21, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Jan 21, 2024

Objective

Currently, only contact points can be debug rendered. It'd be useful to support rendering contact normals.

Solution

Add contact normal debug rendering. The old contact_color and similar configuration options have been renamed like contact_point_color.

I also fixed the arrow gizmo that previously sometimes rendered the tip with an incorrect orientation. When Bevy 0.13 is released, it can be replaced with the built-in arrow gizmo.


Changelog

  • Renamed PhysicsDebugConfig properties and methods like contact_foo to contact_point_foo
  • Added corresponding contact_normal_foo properties and methods
  • Removed With<Collider> filter from debug_render_contacts
  • Fixed arrow gizmo

Migration Guide

  • Change PhysicsDebugConfig properties and methods like contact_foo to contact_point_foo

@Jondolf Jondolf added C-Enhancement New feature or request bugfix A-Debug-Rendering Relates to the debug plugin or any other useful debugging features labels Jan 21, 2024
@Jondolf Jondolf added this to the 0.4 milestone Jan 21, 2024
@Jondolf Jondolf merged commit 0776176 into main Jan 21, 2024
4 checks passed
@Jondolf Jondolf deleted the debug-render-contacts branch January 21, 2024 17:06
@Jondolf Jondolf added C-Bug Something isn't working and removed bugfix labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Debug-Rendering Relates to the debug plugin or any other useful debugging features C-Bug Something isn't working C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant