godotengine / godotengine/godot

CharacterBody2D stuck when performing move_and_slide on a tilemap ceiling

Open
#87,477 4 comments 0 reactions 0 assignees View on GitHub
bug needs testing topic:2d topic:physics
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

![image](https://github.com/godotengine/godot/assets/30241840/ffbd583e-d9e0-4eb7-8bc7-64e7f3bf890c)
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.