code to move (e.g. walk) object along the top of a display object's physics shape boundary?

Any pointers re code to move (e.g. walk) an object (e.g. player) along the top of a display object’s physics shape boundary?

For example say each level is dynamic and one has a different photoshop’ed image that represents the ground of the level, then you have a player (say man) who walks (i.e. sprite animation) along the top of this ground level. The level itself being the top of the “shape” providing when doing the physics “addBody” to the display object.

So wondering if there is any code that could calculate the path along the top?

If there is none, what approach would you recommend? (could move object to right & then up/down to see if it is still above or within the ‘ground’ object, although is there a displayObject:isPointWithinPhysicsShape(x,y) function in corona?
[import]uid: 140210 topic_id: 30732 reply_id: 330732[/import]