diff --git a/README.md b/README.md index b8eb11e..1a7ebb9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

- +

diff --git a/docs/reference/space.rst b/docs/reference/space.rst index 822668f..4e1fc18 100644 --- a/docs/reference/space.rst +++ b/docs/reference/space.rst @@ -19,6 +19,10 @@ Methods .. doxygenfunction:: nv_Space_add +.. doxygenfunction:: nv_Space_remove + +.. doxygenfunction:: nv_Space_kill + .. doxygenfunction:: nv_Space_add_constraint .. doxygenfunction:: nv_Space_step diff --git a/examples/example_base.h b/examples/example_base.h index 57e0eb5..8443555 100644 --- a/examples/example_base.h +++ b/examples/example_base.h @@ -1404,11 +1404,13 @@ void draw_bodies(Example *example, TTF_Font *font) { } } else { + int32_t draw_radius = (int32_t)(body->shape->radius * 10.0); + //if (draw_radius < 10) draw_radius = 10; draw_circle( example->renderer, (int32_t)x, (int32_t)y, - (int32_t)(body->shape->radius * 10.0) + draw_radius ); } } diff --git a/include/novaphysics/novaphysics.h b/include/novaphysics/novaphysics.h index 7e5cfa0..942e578 100644 --- a/include/novaphysics/novaphysics.h +++ b/include/novaphysics/novaphysics.h @@ -26,7 +26,7 @@ // Version in MAJOR.MINOR.PATCH format #define NV_VERSION_MAJOR 0 #define NV_VERSION_MINOR 5 -#define NV_VERSION_PATCH 1 +#define NV_VERSION_PATCH 2 // Version string #define NV_VERSTR \ NV_STRINGIFY(NV_VERSION_MAJOR) "." \ diff --git a/src/space.c b/src/space.c index aa09378..db8c4e6 100644 --- a/src/space.c +++ b/src/space.c @@ -358,8 +358,6 @@ void nv_Space_step( // Actually remove all "removed" bodies. // TODO: This can be optimized I believe - void *removed_res; - for (i = 0; i < space->_removed_bodies->size; i++) { nv_Body *body = (nv_Body *)space->_removed_bodies->data[i];