Skip to content

Commit 7ba6b76

Browse files
committed
Remove density field
1 parent 16b7fbc commit 7ba6b76

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

include/novaphysics/body.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ typedef enum {
7373
*
7474
* @param material Material of the body
7575
*
76-
* @param density Density of the body (it is uniform across the geometry)
7776
* @param mass Mass of the body
7877
* @param mass Inverse mass of the body (1/mass)
7978
* @param inertia Moment of inertia of the body
@@ -107,7 +106,6 @@ typedef struct {
107106

108107
nv_Material material;
109108

110-
double density;
111109
double mass;
112110
double invmass;
113111
double inertia;

src/body.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ void nv_Body_free(void *body) {
9999
b->angular_velocity = 0.0;
100100
b->force = nv_Vector2_zero;
101101
b->torque = 0.0;
102-
b->density = 0.0;
103102
b->is_sleeping = false;
104103
b->sleep_counter = 0;
105104

0 commit comments

Comments
 (0)