Skip to content

Commit

Permalink
Added vector and bugFix unsigned double
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Jan 26, 2022
1 parent 6f35e1a commit e4e12ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/lib/lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define LIB_H

#include <tuple>
#include <vector>

#define NB_KEYS 256

Expand All @@ -15,7 +16,7 @@ typedef struct PhxParam

unsigned int mass;
short gravityReaction; //-1 if the PhysicalEntity is likely to fly
unsigned double bouncyness; // [0,1] absorb every momentum (0) or none (1), maybe it will increase it's internal energy ( to satisfy conservation of energy)
double bouncyness; // [0,1] absorb every momentum (0) or none (1), maybe it will increase it's internal energy ( to satisfy conservation of energy)
double internalEnergy; //for characters that can absorb energy and then liberate it ?
} PhxParam;

Expand Down

0 comments on commit e4e12ac

Please sign in to comment.