Physics like Sonic the Hedgehog or Fancy Pants

Hey guys,

So I’m working on a 2D game that has an uneven terrain similar to sonic the hedgehog or fancy pants. I’ve been looking at different ways to implement the collision detection and collision reaction of the character on these uneven terrains. Basically, these terrains use curves, which makes collision reaction much more difficult to work with. My first thought was to make a grid around the terrain and then use the slope of that grid to rotate my character and give the illusion that the character is moving along with the curve. However, this isn’t giving me the results that I’m looking for.

If you look at sonic the hedgehog, they were able to make sonic run on curved terrain without any issues. My question is, how can I mimic the physics in a game such as sonic the hedgehog or fancy pants. Does anyone know of any tutorials out there that discuss this kind of physics? Thanks!

Will