Skip to content

Commit

Permalink
0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kadir014 committed Oct 28, 2023
1 parent 02fd98d commit 52b0197
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center"><img src="https://raw.githubusercontent.com/kadir014/kadir014.github.io/master/assets/novaphysics.png" width=340></p>
<p align="center">
<img src="https://img.shields.io/badge/license-MIT-blue.svg">
<img src="https://img.shields.io/badge/version-0.5.1-yellow">
<img src="https://img.shields.io/badge/version-0.5.2-yellow">
<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>
</p>
<p align="center">
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/space.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/example_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion include/novaphysics/novaphysics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) "." \
Expand Down
2 changes: 0 additions & 2 deletions src/space.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 52b0197

Please sign in to comment.