mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
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.
This commit is contained in:
@@ -32,7 +32,8 @@ void WanderAISystem::do_ai(BaseServerCreature& creature,
|
||||
creature.direction.value = r.random_direction_horizontal();
|
||||
}
|
||||
if (r.random_bool(MOVE_PROBABILITY)) {
|
||||
move_boost.duration = r.random_int(5, 8);
|
||||
|
||||
move_boost.duration = r.random_int(20, 40);
|
||||
move_boost.count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user