#RigidBody2D stops when moving parallel to TileMapLayer

1 messages · Page 1 of 1 (latest)

sinful birch
#

(initially sent this in #❓┃quick-help, but it seems like I should make a full on post for this xd)

My player character who is a Rigidbody2D (with a RectangleShape2D as a collider) gets stuck on the collisions inbetween tiles of my TileMapLayer.
I've looked online and other people seem to have similar issues (https://github.com/godotengine/godot/issues/72372), but all the fixes I've seen are things like changing the collisionShape to a circleShape (which doesn't work because the player bumps on tile edges) or using a plugin to make the tilemap colliders into staticbody colliders (which also doesn't work in my case because I need the collision to be tied directly to the tiles). Does anyone know a fix for this?

GitHub

Godot Engine – Multi-platform 2D and 3D game engine - Issues · godotengine/godot

pseudo jolt
#

The better solution is to simply make the collision smaller so it can fit comfortably between the tiles.