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

Feature request: provide gizmo lines for applied external forces #316

Open
viccuad opened this issue Jan 28, 2024 · 1 comment
Open

Feature request: provide gizmo lines for applied external forces #316

viccuad opened this issue Jan 28, 2024 · 1 comment
Labels
A-Debug-Rendering Relates to the debug plugin or any other useful debugging features C-Enhancement New feature or request

Comments

@viccuad
Copy link

viccuad commented Jan 28, 2024

Hi, this project is great, congrats and thanks!

While trying it, I've realized that iterating through game dev can be painful.

Suggestion

  • Provide gizmo lines as part of the PhysicsGizmos that showcase the externally applied forces. I suppose with a simple line in the normal of the force would be enough.
  • Provide a configurable option in PhysicsDebugConfig to configure the maximum length of the lines, and the expected maximum force. This way one can tune the scale of the lines for them to be visible and useful.
@Jondolf Jondolf added C-Enhancement New feature or request A-Debug-Rendering Relates to the debug plugin or any other useful debugging features labels Jan 28, 2024
@Jondolf
Copy link
Owner

Jondolf commented Feb 18, 2024

Hi! In #324, I added publicly accessible contact impulses (for forces, divide by delta time) and support for rendering them. The scale can also be customized, although you can't set the maximum length at the moment.

This is only for contacts for now, and doesn't include gravity, ExternalForce, or joints. I could definitely support rendering those too though, and especially joints might be useful.

It might also be nice to visualize the total force or acceleration of a body. This would include gravity, ExternalForce, and all of the contact and joint forces. Things like the user abruptly setting the velocity to a specific value probably shouldn't be counted towards the force though.

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

No branches or pull requests

2 participants