/** * 得到刚体列表的第一个刚体, 可以通过Body.getNext遍历所有刚体 * * @return {@link Body} */ public Body getFirstBody() { return Body.from(nativeGetFirstBody()); }
/** * 通过BodyDef创建一个Body * * @param bd {@link BodyDef} * @return {@link Body} */ public Body createBody(BodyDef bd) { return Body.from(nativeCreateBody(bd)); }