godotengine / godotengine/godot
CharacterBody2D stuck when performing move_and_slide on a tilemap ceiling
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
4.2.1-stable, 4.3-dev2
### System information
Godot v4.2.1.stable - Ubuntu 22.04.3 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Laptop GPU () - 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 Threads)
### Issue description

Some specific setup of tile in a tilemap does not allow a CharacterBody2D (white boxes) to glide on it when `move_and_slide` is called, as shown on the screenshot- particularly the lowest box that attempted to glide on a tilemap ceiling. It gets stuck there for no apparent reason.
(Top 2 box not related- it also got stuck, but the tiles places are not continuous)
### Steps to reproduce
- Create a CharacterBody2D, attach a script to move_and_slide to the right
- Place it exactly under a tilemap ceiling
- Run it
### Minimal reproduction project (MRP)
[PoC.zip](https://github.com/godotengine/godot/files/14013048/PoC.zip)
Contributor guide
Assessment
This issue has not been assessed yet.