godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.16k stars 97 forks source link

Change drawing color for collision shapes of sleeping RigidBodies in the "Visible Collision Shapes" physics debug option #3667

Open alan-man opened 2 years ago

alan-man commented 2 years ago

Describe the project you are working on

https://gamejolt.com/games/theta/627377

Describe the problem or limitation you are having in your project

Hard to know if the RB have switched to sleep mode or not

Describe the feature / enhancement and how it helps to overcome the problem or limitation

When physics debug on, just change the drawing color when rigidbody sleeps or not

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

  1. The user enables "visible collision shapes" in the Debug menu
  2. The godot engine slightly changes the color when the RB sleeps

If this enhancement will not be used often, can it be worked around with a few lines of script?

would be expensive, could hurt fps ...

Is there a reason why this should be core and not an add-on in the asset library?

collisions debug drawing is already in core.

alan-man commented 2 years ago

@pouleyKetchoupp Any comments or advice ? Where in the core would I implement it ? Thanks A