Skip to content
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

Closed
pizzapim opened this issue Apr 28, 2018 · 4 comments
Closed

Can't rotate the one-way collision on a TileMap tile. #18493

pizzapim opened this issue Apr 28, 2018 · 4 comments

Comments

@pizzapim
Copy link

pizzapim commented Apr 28, 2018

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

@eon-s
Copy link
Contributor

eon-s commented Apr 28, 2018

Rotating the tile also rotates the shape but the one side remains pointing down.

@pizzapim
Copy link
Author

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.
I just read this #12863, it seems like he tried to fix this.

@akien-mga
Copy link
Member

Duplicate of #12791.

@hsandt
Copy link
Contributor

hsandt commented Jan 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants