diff --git a/include/body.h b/include/body.h index 562557cacafbb4f84c630d95b19c2f90223a2172..4379332b7cf24708d362c511b44124b3db136772 100644 --- a/include/body.h +++ b/include/body.h @@ -38,7 +38,7 @@ void body_free(body_t *body); * Returns a newly allocated vector list, which must be list_free()d. * * @param body a pointer to a body returned from body_init() - * @return the polygon describing the body's current position + * @return the list of points describing the body's current position */ list_t *body_get_shape(body_t *body); @@ -113,8 +113,7 @@ double body_get_rotation(body_t *body); void body_set_rotation(body_t *body, double angle); /** - * Moves a body at its current velocity over a given time interval based total - * force acting upon body. + * Translates a body based on its current velocity over a given time interval. * * @param body the body to tick * @param dt the number of seconds elapsed since the last tick @@ -129,4 +128,4 @@ void body_tick(body_t *body, double dt); */ double body_get_mass(body_t *body); -#endif // #ifndef __BODY_H__ \ No newline at end of file +#endif // #ifndef __BODY_H__ diff --git a/library/sdl_wrapper.c b/library/sdl_wrapper.c index 55055e3cae6a44237985981c4d398fb15e4a27c8..c5bf0b80efb811a3ef386b7061ab0bf7827733e2 100644 --- a/library/sdl_wrapper.c +++ b/library/sdl_wrapper.c @@ -208,7 +208,7 @@ void sdl_render_scene(scene_t *scene) { body_t *body = scene_get_body(scene, i); list_t *shape = body_get_shape(body); polygon_t *poly = - polygon_init(shape, (vector_t){0, 0}, (vector_t){0, 0}, 0, 0, 0, 0); + polygon_init(shape, (vector_t){0, 0}, 0, 0, 0, 0); sdl_draw_polygon(poly, body_get_color(body)); list_free(shape); } diff --git a/ref/body.wasm.ref.o b/ref/body.wasm.ref.o index cfda78fdb03c1cff186c16fbab16eb982df87f37..377675ed06e3ae20e014db94d1f3f515c67fdf9e 100644 Binary files a/ref/body.wasm.ref.o and b/ref/body.wasm.ref.o differ diff --git a/ref/list.wasm.ref.o b/ref/list.wasm.ref.o index aa605eb008869ae1955a477dab675857f3f3b096..265949d6fa9a7c8efc377f3dbdd4e4aa296a8b9f 100644 Binary files a/ref/list.wasm.ref.o and b/ref/list.wasm.ref.o differ diff --git a/ref/polygon.wasm.ref.o b/ref/polygon.wasm.ref.o index 1849403401542ccc3904210d9c0484d4a47c3e3f..ac5508220aaaa8d9fe9855b6e904dcae85d0c834 100644 Binary files a/ref/polygon.wasm.ref.o and b/ref/polygon.wasm.ref.o differ diff --git a/ref/sdl_wrapper.wasm.ref.o b/ref/sdl_wrapper.wasm.ref.o index b1eb1a015f2d3de7676c9f27d18e66389aa587c2..644fbfcbcaf23e9fb892e03e9f7deaace026040a 100644 Binary files a/ref/sdl_wrapper.wasm.ref.o and b/ref/sdl_wrapper.wasm.ref.o differ