Check out the infinite runner example. editor.construct.net
Replace the solid tiled background object with a 3dshape object.
You'll need to adjust the numbers a little bit, since the 3dshape object's origin is always in the center, and the tiled background is set to top left.