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
When setting the collisions of a tile in a TileSet as one-way, the engine does not apply it correctly. Normally, a character should be able to jump to a higher platform from below "through" it, but any other type of collision should be detected and the engine should prevent the character from going through the obstacle.
In the code example that I attach you can see how the character can cross the area on his right. In this case, the character should hit that raised area and be stopped.
Steps to reproduce
Create a Godot 4 project
Create a map with a TileMap, and use a Tile with the one-way collision enabled
Add a CharacterBody2D node as the player, set its movement and collisions
This is not a bug. One way collision, as name implies, works only one way - from top. All other directions aren't detected; that's consistent with literally every platformer.
This is not a bug. One way collision, as name implies, works only one way - from top. All other directions aren't detected; that's consistent with literally every platformer.
I suppose documentation should be modified to make this more explicit.
This is not a bug. One way collision, as name implies, works only one way - from top. All other directions aren't detected; that's consistent with literally every platformer.
Right, I was confused about that. Thanks for the clarification.
Godot version
v4.0.alpha.14.official
System information
Linux Mint, Vulkan
Issue description
When setting the collisions of a tile in a TileSet as one-way, the engine does not apply it correctly. Normally, a character should be able to jump to a higher platform from below "through" it, but any other type of collision should be detected and the engine should prevent the character from going through the obstacle.
In the code example that I attach you can see how the character can cross the area on his right. In this case, the character should hit that raised area and be stopped.
Steps to reproduce
Minimal reproduction project
https://github.com/svprdga/Godot-4-One-way-collision-error
The text was updated successfully, but these errors were encountered: