I would like my game to have platforms that don’t affect the player from the bottom or the sides, only on the top. I would also like to be able to make these platforms using a tilemap. I think I should be using a Platform Effector 2D, but I’m not sure how to apply this to a tilemap. I have a Tilemap Collider 2D, which is used by a Composite Collider 2D, which is used by a Platform Effector 2D, but the tiles just behave like normal tiles.
1 Like
I think you simply need to remove the Composite Collider 2D and have your Tilemap Collider 2D use the Platform Effector 2D directly. You should also adjust your tile rules so that the collider type is changed from “sprite” to “none” for each tile you would like the player to ignore completely. You may be able to use the Platform Effector 2D through the Composite Collider 2D and just change the tile’s collider state, but I have not tested that method yet.
Faces in collision meshes are one-sided. This means objects can pass through them from one direction, but collide with them from the other.
With a MeshCollider you can generate your own faces, there is a detailed explanation here: