Skip to content

Commit

Permalink
Remove density field
Browse files Browse the repository at this point in the history
  • Loading branch information
kadir014 committed Feb 18, 2023
1 parent 16b7fbc commit 7ba6b76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions include/novaphysics/body.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ typedef enum {
*
* @param material Material of the body
*
* @param density Density of the body (it is uniform across the geometry)
* @param mass Mass of the body
* @param mass Inverse mass of the body (1/mass)
* @param inertia Moment of inertia of the body
Expand Down Expand Up @@ -107,7 +106,6 @@ typedef struct {

nv_Material material;

double density;
double mass;
double invmass;
double inertia;
Expand Down
1 change: 0 additions & 1 deletion src/body.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void nv_Body_free(void *body) {
b->angular_velocity = 0.0;
b->force = nv_Vector2_zero;
b->torque = 0.0;
b->density = 0.0;
b->is_sleeping = false;
b->sleep_counter = 0;

Expand Down

0 comments on commit 7ba6b76

Please sign in to comment.