You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
The Godot editor describes the first collision layer bit, as "Layer 1"
However, I've notices that when accessing the bit from gdScript, the index starts from zero (e.g., get_collision_layer_bit(0))
That dissonance has confused me for a while, when implemented collisions using Area2D's collision layers & masks, and has caused bugs until I figured it out.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Simply Start from "Layer 0" in the editor (both in the Inspector, and in the Editor Settings).
That's relatively simple to implement, and would save other programmars' time and confusion.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Simply change the relevant labels :-)
If this enhancement will not be used often, can it be worked around with a few lines of script?
Yes, people would figure it out eventually, yet it has a low implementation cost, so I'd say it's worths it.
Is there a reason why this should be core and not an add-on in the asset library?
Because It's part of the main godot editor.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
A multiplayer mini-game.
Describe the problem or limitation you are having in your project
The Godot editor describes the first collision layer bit, as "Layer 1"
However, I've notices that when accessing the bit from gdScript, the index starts from zero (e.g., get_collision_layer_bit(0))
That dissonance has confused me for a while, when implemented collisions using Area2D's collision layers & masks, and has caused bugs until I figured it out.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Simply Start from "Layer 0" in the editor (both in the Inspector, and in the Editor Settings).
That's relatively simple to implement, and would save other programmars' time and confusion.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Simply change the relevant labels :-)
If this enhancement will not be used often, can it be worked around with a few lines of script?
Yes, people would figure it out eventually, yet it has a low implementation cost, so I'd say it's worths it.
Is there a reason why this should be core and not an add-on in the asset library?
Because It's part of the main godot editor.
The text was updated successfully, but these errors were encountered: