walking on bezier curved ground

Hi,

I’m developing physic based running game. My platform has flat/straight shape now. But i would like use bezier curved shape as platform. I can declare shape for ground but how can my player stands on platform for example climbs/walks on hill? I’m using classic code for bg animation background.x =background.x-1.

But here i need my player stand on hills, past on hill and pits. It’s about my chars y axis? I seen a joint example but don’t like it? (joint to a point who top on player) Is there a beatifulway for this?

thanks.

I had to do something similar in one of my projects, so I used a bezier curve with physics to achieve it.

Fortunately I use Level Director (http://www.retrofitproductions.com/level-director/) which allows you to draw Bezier curves and apply physics.

I found overlaying a curve was much better than trying to apply physics shapes to individual objects because it became ‘sticky’ when in my instance a ball rolled along the surface.

This article may help too https://developer.coronalabs.com/code/bezier-curve-corona-sdk

Thank you very much, i’m checking level director now. I worked bezier curves without phyiscs before. i will try with physic.

thanks

I had to do something similar in one of my projects, so I used a bezier curve with physics to achieve it.

Fortunately I use Level Director (http://www.retrofitproductions.com/level-director/) which allows you to draw Bezier curves and apply physics.

I found overlaying a curve was much better than trying to apply physics shapes to individual objects because it became ‘sticky’ when in my instance a ball rolled along the surface.

This article may help too https://developer.coronalabs.com/code/bezier-curve-corona-sdk

Thank you very much, i’m checking level director now. I worked bezier curves without phyiscs before. i will try with physic.

thanks