Repository navigation
This major release focuses on standardizing the API, improving debugging capabilities through strict typing, and significantly optimizing the RayTracing module.
🚀 Optimization
Completely rewrote
BboxTraceAnalyzer. It now uses an analytical Ray-AABB intersection (slab method) combined with aggressive entity caching. This drastically reduces the cost of traces in complex scenes.🛠 Developer Experience (DX) & Stabilization
- Strict Typing: Added explicit type validation across core modules (
entLib,math,ScheduleEvent). Invalid arguments now throw clear, descriptive errors instead of silent failures.- Standardization: Unified method naming to PascalCase (e.g.,
GetHitPos) and standardized equality checks viaIsEqual.- List Iteration: Enforced explicit iteration via
.iter()to prevent runtime errors and ambiguity with standard Squirrelforeach.✨ Key Changes
- Renamed
SetAbsOrigin→SetAbsOriginNative(engine call).- Renamed
SetAbsOrigin2→SetAbsOrigin(custom teleport logic).- Introduced
UNSAFE_ClearWithGlobal()for the Scheduler.- Fixed
ScheduleEventerror unwinding.Important
This release includes breaking API changes. Please refer to the Migration Guide for details on upgrading from v3.8.