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

Fix list.wasm.ref.o

parent 96e41d11
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); ...@@ -38,7 +38,7 @@ void body_free(body_t *body);
* Returns a newly allocated vector list, which must be list_free()d. * Returns a newly allocated vector list, which must be list_free()d.
* *
* @param body a pointer to a body returned from body_init() * @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); list_t *body_get_shape(body_t *body);
...@@ -113,8 +113,7 @@ double body_get_rotation(body_t *body); ...@@ -113,8 +113,7 @@ double body_get_rotation(body_t *body);
void body_set_rotation(body_t *body, double angle); void body_set_rotation(body_t *body, double angle);
/** /**
* Moves a body at its current velocity over a given time interval based total * Translates a body based on its current velocity over a given time interval.
* force acting upon body.
* *
* @param body the body to tick * @param body the body to tick
* @param dt the number of seconds elapsed since the last tick * @param dt the number of seconds elapsed since the last tick
...@@ -129,4 +128,4 @@ void body_tick(body_t *body, double dt); ...@@ -129,4 +128,4 @@ void body_tick(body_t *body, double dt);
*/ */
double body_get_mass(body_t *body); double body_get_mass(body_t *body);
#endif // #ifndef __BODY_H__ #endif // #ifndef __BODY_H__
\ No newline at end of file
...@@ -208,7 +208,7 @@ void sdl_render_scene(scene_t *scene) { ...@@ -208,7 +208,7 @@ void sdl_render_scene(scene_t *scene) {
body_t *body = scene_get_body(scene, i); body_t *body = scene_get_body(scene, i);
list_t *shape = body_get_shape(body); list_t *shape = body_get_shape(body);
polygon_t *poly = 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)); sdl_draw_polygon(poly, body_get_color(body));
list_free(shape); 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