-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
TileData.get_terrain_peering_bit() returns error #89909
Labels
Milestone
Comments
Yes, the mode only works with square, it need other directions in other modes, this should be documented more clearly, but there's no bug here, see here for the valid neighbors: godot/scene/resources/2d/tile_set.cpp Lines 864 to 945 in 7d151c8
We should probably expose this helper method to help with using this properly |
Making a PR to expose this on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested versions
v4.2.1.stable.official [b09f793]
System information
Godot v4.2.1.stable - Linux Mint 21 (Vanessa) - X11 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3060 (nvidia; 535.161.07) - AMD Ryzen 5 2600X Six-Core Processor (12 Threads)
Issue description
My gdscript calls TileData.get_terrain_peering_bit() for all tiles in the tile atlas. The reason is to use the peering information for procedural generation.
https://docs.godotengine.org/en/stable/classes/class_tiledata.html#class-tiledata-method-get-terrain-peering-bit
The problem is that I get this error for all tiles which have no peering bits:
This might be the "problem":
https://github.com/godotengine/godot/blob/master/scene/resources/2d/tile_set.cpp#L6434
solution ideas:
Steps to reproduce
call get_terrain_peering_bit() on a cell with no peering bit.
Minimal reproduction project (MRP)
this test prints the error:
The text was updated successfully, but these errors were encountered: