- Home /
2D Objects interacting with colliders and gravity seemingly at random
I'm making a 2D platformer and I'm experimenting with tilesets for the first time. I've made a very simple room and I added collisions using a Tilemap Collider 2D and a Composite Collider 2D. My Player and my placeholder enemy (the red thing in the video) each have a collider and rigidbody, but they are acting extremely strange with the environment. As you can see in the video, they are falling through the floor, but only partially, and when dragged up gravity seems to flip, then they stop and just float. I've tried making a new empty GameObject and just adding a rigidbody and a collider to it and it's acting the same, so it shouldn't have anything to do with the player or enemy specifically. I have also tried setting up a basic platform using just a polygon collider and that seems to be behaving similarly.