Files
Cubed/include/Cubed/gameplay/systems/physical_system.hpp
zhenyan121 5980400e2e feat(creatures): refine pig movement physics
Add movement constants for pigs and switch deceleration to per-axis friction so creatures stop naturally. Extend wander boost duration for smoother behavior.
2026-08-02 16:36:56 +08:00

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