chipmunk怎么实现超级玛丽那种左右移动?

如题,求参考代码,谢谢。

另外void cpBodyApplyForce(cpBody *body, const cpVect f, const cpVect r)种的r是什么意思,我看有些例子里写(0,0),代表什么意思呢?