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 rendering for sleeping bodies #185

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Oct 17, 2023

Objective

The debug renderer doesn't display whether bodies are sleeping.

Solution

Add a "sleeping color multiplier" that multiplies the HSLA properties of colors used for colliders, AABBs and joints when the bodies are sleeping. By default, it just makes the colors darker for sleeping bodies.

The multiplier can be configured with PhysicsDebugConfig and DebugRender.

@Jondolf Jondolf added C-Enhancement New feature or request A-Debug-Rendering Relates to the debug plugin or any other useful debugging features labels Oct 17, 2023
@Jondolf Jondolf merged commit 09a8c6e into main Oct 17, 2023
@Jondolf Jondolf deleted the debug-render-sleeping branch October 17, 2023 17:35
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-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant