Back to floats.
This commit is contained in:
@@ -10,10 +10,9 @@
|
||||
#include "rpg/entity/player.h"
|
||||
#include "npc.h"
|
||||
#include "physics/physics.h"
|
||||
#include "rpg/world/worldunit.h"
|
||||
|
||||
#define ENTITY_FRICTION 2
|
||||
#define ENTITY_MIN_VELOCITY 1
|
||||
#define ENTITY_FRICTION 16.0f
|
||||
#define ENTITY_MIN_VELOCITY 0.1f
|
||||
#define ENTITY_COUNT 256
|
||||
|
||||
typedef struct map_s map_t;
|
||||
@@ -30,8 +29,8 @@ typedef struct entity_s {
|
||||
uint8_t id;
|
||||
entitytype_t type;
|
||||
direction_t direction;
|
||||
worldpos_t position[WORLD_DIMENSIONS];
|
||||
worldsubtile_t velocity[WORLD_DIMENSIONS];
|
||||
vec3 position;
|
||||
vec3 velocity;
|
||||
|
||||
union {
|
||||
player_t player;
|
||||
|
||||
Reference in New Issue
Block a user