Skip to content

PCapture-Lib 4.0!

Latest

Choose a tag to compare

@LaVashikk LaVashikk released this 28 Dec 15:03
· 1 commit to main since this release

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 via IsEqual.
  • List Iteration: Enforced explicit iteration via .iter() to prevent runtime errors and ambiguity with standard Squirrel foreach.

✨ Key Changes

  • Renamed SetAbsOrigin → SetAbsOriginNative (engine call).
  • Renamed SetAbsOrigin2 → SetAbsOrigin (custom teleport logic).
  • Introduced UNSAFE_ClearWithGlobal() for the Scheduler.
  • Fixed ScheduleEvent error unwinding.

Important

This release includes breaking API changes. Please refer to the Migration Guide for details on upgrading from v3.8.