-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Can't rotate the one-way collision on a TileMap tile. #18493
Comments
Rotating the tile also rotates the shape but the one side remains pointing down. |
I did some more testing and it seems this has nothing to do with the tilemaps. Rotating one-way collision doesn't work on the Sprite>StaticBody2D>CollisionShape2d setup without the tilemap too. |
Duplicate of #12791. |
It is still not possible to rotate the one-way direction for a tilemap tile collision (unlike other collision shapes, which are associated to a node). A proposal has been opened for this: godotengine/godot-proposals#7483 |
Godot version:
v3.0.2.stable.official
OS/device including version:
Linux Mint 18.2 64-bit
I want to have a tile in my TileMap that has a one-way collision, pointing to the right. So I used my usual setup of Sprite>StaticBody2D>CollisionShape2d, and set the rotation_degrees on the collision shape to -90. This way the arrow in the editor is pointed to the right as expected.
However, in-game the collision shape doesn't rotate at all. The one-way collision does work, but it is pointed downwards(because the collision shape hasn't rotated).
Minimal reproduction project:
The Legend of Zelda: Godot's Wrath.zip
The tile in question is the rock. Enable collision debug and you can see the collision shape hasn't rotated. Tileset source is scenes/tileset_source.tscn
The text was updated successfully, but these errors were encountered: