mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
fix: correct velocity clamping and hitbox loading
Preserve sign when clamping velocity; negative velocities now clamp to zero instead of flipping direction. Support loading hitbox definitions from JSON arrays and objects. Tune pig entity movement, spawn height, and wander probabilities.
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
#include "Cubed/tools/cubed_random.hpp"
|
||||
|
||||
namespace {
|
||||
constexpr double DIRECTION_PROBABILITY = 0.1;
|
||||
constexpr double MOVE_PROBABILITY = 0.1;
|
||||
constexpr double DIRECTION_PROBABILITY = 0.01;
|
||||
constexpr double MOVE_PROBABILITY = 0.01;
|
||||
} // namespace
|
||||
|
||||
namespace Cubed {
|
||||
|
||||
Reference in New Issue
Block a user