(EDIT: for A7/ ODE: ) You can continuously add a force on its y-component to keep the entity on the x-z-plain, f.i. simply the negative y-distance.
Alternatively, create an invisible map entity with two walls on the left and right side of the x-axis and place it at your physic entity's position each frame (that's how I do it in my sidescroller).

Last edited by Superku; 10/26/10 19:59.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends