Back to floats.

This commit is contained in:
2025-10-10 09:16:08 -05:00
parent c4c43b23ad
commit 349e6e7c94
16 changed files with 164 additions and 220 deletions

View File

@@ -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;