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

Scale debug rendering of center of mass dot by axis lengths #268

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Nov 30, 2023

Objective

Fixes #260.

Currently, the size of the debug-rendered yellow dot visualizing the center of mass in the middle of a body's axes is hard-coded. This is annoying and confusing when working at different scales than the assumed default scale.

Solution

Derive the radius of the dot based on the average of the debug rendered rigid body axis lengths.

@Jondolf Jondolf added the A-Debug-Rendering Relates to the debug plugin or any other useful debugging features label Nov 30, 2023
@Jondolf Jondolf merged commit 675ac2a into main Nov 30, 2023
4 checks passed
@Jondolf Jondolf deleted the debug-render-com-scale branch November 30, 2023 18:43
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug render axes "dot" is hard-coded to 0.5 radius in 2D
1 participant