godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.48k stars 21.08k forks source link

[Bullet] GridMap collisions broke from 3.1.2 to 3.2 #35713

Closed trollodel closed 2 years ago

trollodel commented 4 years ago

Godot version: 3.2

OS/device including version: Ubuntu 18.04 based distro (KDE neon)

Issue description: I have a GridMap with a MeshLibrary where KinematicBody entities walk on (using move_and_collide). In 3.1.2 these enemies walk correctly, without colliding with the Gridmap. But in 3.2, enemies collide with the Gridmap and can't move across the tile's CollsionShape edges. Only after some time, the enemies can across the tile, but they will be blocked by another tile. However, they can't ever pass across a vertex.

Here is a sample images with the collision shapes. The enemy's CollsisionShape is the cylinder. bug godot

Ask me for any specific question about the movement or something else.

Calinou commented 4 years ago

@trollodel Please upload a minimal reproduction project to make this easier to troubleshoot.

trollodel commented 4 years ago

Here is a slimmed down version of my project gridmap-example.zip

There is a KinematicBody that follows the player (Use WASD to move the player ). The project has no sprites, so you should enable collision shapes visibility.

pouleyKetchoupp commented 3 years ago

Can be still reproduced in 3.2.4 beta 5, but occurs only when using Bullet Physics (default settings). Switching to Godot Physics 3D fixes the movement issues (although cylinders are not supported in Godot Physics yet, so I had to switch to boxes to check).

akien-mga commented 2 years ago

Duplicate of #35780, fixed by #56801.