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
Issue in topic. I think engine should trow an error, if it can't support what layer bit anyway. It might be important for some users, for example, what can choose exact layer bit by formula or something.
And just little request for addition: please, make shown in editor all supported 32 collision layer bits. It's was an unpleasant surprise for me and give addition unnecessary work to rewriting code. At least just make a short-term solution, if you discuss about UI usability in editor, it will be better than nothing.
Steps to reproduce
Add any PhysicsBody2D or Area2D to scene, add script to them.
Set by set_collision_layer_bit any unsupported bit (-1, 37, 96 e.t.c) to true in code.
Ready to check and show! Code for checking may looks like what:
for i in 70:
if get_collision_layer_bit(i-10): print(i-10)
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
Interestingly enough, the values seem to be added twice when they exceed the limits.
For example, set_collision_layer_bit(36, true) sets 36, but also 4 (36-32).
Godot version
3.3.2 stable
System information
Windows 7
Issue description
Issue in topic. I think engine should trow an error, if it can't support what layer bit anyway. It might be important for some users, for example, what can choose exact layer bit by formula or something.
And just little request for addition: please, make shown in editor all supported 32 collision layer bits. It's was an unpleasant surprise for me and give addition unnecessary work to rewriting code. At least just make a short-term solution, if you discuss about UI usability in editor, it will be better than nothing.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: