Please excuse me if this has been brought up before.
I am experimenting a bit with the Physics engine and a tiled based (old school) platformer design. I have tiled out the ground as BoxColliders, created my BoxCollider player and have him moving across the ground but he would get stuck in one spot here and there seemingly randomly. I figured he was getting stuck in spots between some of the ground colliders (which is a bummer) and from what I have read online, I was correct.
The easy way to fix this problem would be to simply change the player into a Circle Collider. I have experimented with this and even though this seems like a quick fix, it does not address the player needing to get close to the edge of a platform (within the circle’s radius) and then rolling off the platform on its own as it naturally does because it is a circle. What I see needing is the front part of the player Body collider being a circle and the back part being a Box OR I from what I have read I could keep the player a Box and use some type of edge chaining method. The Body would also need to keep track of the Circle being the leading Collider shape for the direction the player is facing
I thought I would bring up this discussion to see what might be recommended for a Felgo game. The levels in this game will be larger than the screen size, a camera will be attached to the player, I intend to use the in-game level editor to create levels and I always prefer the simplest solution.
- This topic was modified 5 years, 9 months ago by Xevoius.