mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
Add movement constants for pigs and switch deceleration to per-axis friction so creatures stop naturally. Extend wander boost duration for smoother behavior.
15 lines
317 B
C++
15 lines
317 B
C++
#pragma once
|
|
#include "Cubed/gameplay/ecs/movement.hpp"
|
|
|
|
#include <entt/entt.hpp>
|
|
namespace Cubed {
|
|
class ServerWorld;
|
|
class PhysicalSystem {
|
|
public:
|
|
static glm::vec3 get_move_distance(const TickVelocity& v);
|
|
|
|
static void update(ServerWorld& world, entt::registry& registry);
|
|
|
|
private:
|
|
};
|
|
} // namespace Cubed
|