mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-20 13:50:46 +00:00
- Added a new system to prevent NPCs from clipping through walls and tables during collisions. - Introduced functions for position validation and safe movement: `isPositionSafe()`, `boundsOverlap()`, and `findSafeCollisionPosition()`. - Updated `handleNPCCollision()` and `handleNPCPlayerCollision()` to utilize the new safe position logic, allowing NPCs to find alternative paths when blocked. - Created comprehensive documentation detailing the implementation, testing procedures, and performance analysis. - Ensured minimal performance impact with efficient collision checks and pathfinding.