Commit a920818f authored by Eshani J. Patel's avatar Eshani J. Patel
Browse files

Fix list.wasm.ref.o

parent 96e41d11
1 merge request!1Fix list.wasm.ref.o
Pipeline #102602 failed with stage
in 0 seconds
Showing with 4 additions and 5 deletions
+4 -5
......@@ -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
......
......@@ -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);
}
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment