Skip to content

Commit 52b0197

Browse files
committed
0.5.2
1 parent 02fd98d commit 52b0197

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center"><img src="https://raw.githubusercontent.com/kadir014/kadir014.github.io/master/assets/novaphysics.png" width=340></p>
22
<p align="center">
33
<img src="https://img.shields.io/badge/license-MIT-blue.svg">
4-
<img src="https://img.shields.io/badge/version-0.5.1-yellow">
4+
<img src="https://img.shields.io/badge/version-0.5.2-yellow">
55
<a href="https://www.codacy.com/gh/kadir014/nova-physics/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=kadir014/nova-physics&amp;utm_campaign=Badge_Grade"><img src="https://app.codacy.com/project/badge/Grade/9556f3db17d54b288557d3b2e9dbf366"></a>
66
</p>
77
<p align="center">

docs/reference/space.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ Methods
1919

2020
.. doxygenfunction:: nv_Space_add
2121

22+
.. doxygenfunction:: nv_Space_remove
23+
24+
.. doxygenfunction:: nv_Space_kill
25+
2226
.. doxygenfunction:: nv_Space_add_constraint
2327

2428
.. doxygenfunction:: nv_Space_step

examples/example_base.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,11 +1404,13 @@ void draw_bodies(Example *example, TTF_Font *font) {
14041404
}
14051405
}
14061406
else {
1407+
int32_t draw_radius = (int32_t)(body->shape->radius * 10.0);
1408+
//if (draw_radius < 10) draw_radius = 10;
14071409
draw_circle(
14081410
example->renderer,
14091411
(int32_t)x,
14101412
(int32_t)y,
1411-
(int32_t)(body->shape->radius * 10.0)
1413+
draw_radius
14121414
);
14131415
}
14141416
}

include/novaphysics/novaphysics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// Version in MAJOR.MINOR.PATCH format
2727
#define NV_VERSION_MAJOR 0
2828
#define NV_VERSION_MINOR 5
29-
#define NV_VERSION_PATCH 1
29+
#define NV_VERSION_PATCH 2
3030
// Version string
3131
#define NV_VERSTR \
3232
NV_STRINGIFY(NV_VERSION_MAJOR) "." \

src/space.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ void nv_Space_step(
358358
// Actually remove all "removed" bodies.
359359
// TODO: This can be optimized I believe
360360

361-
void *removed_res;
362-
363361
for (i = 0; i < space->_removed_bodies->size; i++) {
364362
nv_Body *body = (nv_Body *)space->_removed_bodies->data[i];
365363

0 commit comments

Comments
 (0)