godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.13k stars 86 forks source link

Allow customizing the size of the RayCast2D debug gizmos #2855

Open chucklepie opened 3 years ago

chucklepie commented 3 years ago

Describe the project you are working on

2D pixel game

Describe the problem or limitation you are having in your project

When you have a low res game, it's handy to resize position2D elements using the 'gizmo extents' option to make it usable in the ide.

Unfortunately, Ray Casts do not. image

As you can see, it's massive, especially the point, making it hard to just.

Here is the same, but scaled up version of the same sprite, which is much better.

image

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

Provide a similar property for raycasts so they are easier to use in the ide

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

A similar property to 'gizmo extent' but will resize the line and point proportionately while keeping the same cast length.

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

No

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

It's hard to see raycasts

Calinou commented 3 years ago

I think small RayCasts should have their width decrease automatically instead. The arrowhead gizmo shouldn't make for more than 20-25% of the RayCast's length or so.

Note that for 3D, customizing the gizmo's size and color is already supported in both master and 3.x (will be in 3.4beta1).