
Descrição
LeashMathLibrary is a lightweight, C++ optimized solution designed for developers who need to detect and manage line segment intersections in real-time. While built originally to solve complex tethering and leash tangling mechanics, this utility is a versatile tool for any project requiring high-frequency geometric calculations.
The plugin utilizes foundational 2D Cross Product math to determine if two line segments cross, providing the exact intersection point while remaining completely Z-axis agnostic. This ensures that even if actors are on uneven terrain or at different heights, the 2D "top-down" intersection remains perfectly accurate.
Technical Details
High-Performance 2D Intersection: A C++ optimized solution for performance-critical systems like multi-tether physics.
Z-Axis Agnostic: Internally flattens vector inputs to $FVector2D$, ensuring accurate logic for actors on slopes or varying elevations.
Intersection Point Output: Returns the precise $FVector2D$ coordinates where segments cross.
Blueprint Ready: Globally accessible via a Blueprint Function Library—no component attachment or actor spawning required.
Visual Debugger Included: Contains a dedicated demo map and interactive debugger blueprint to visualize math in real-time.
Plugin Specifications
Code Modules: LeashMathLibrary (Runtime).
Number of Blueprints: 1 (BP_IntersectionDebugger).
Number of C++ Classes: 1 (ULeashMathBPLibrary).
Network Replicated: No (Pure Math Library).
Supported Development Platforms: Windows.
Supported Target Build Platforms: Windows.
Documentation:
Important Notes To view the included Demo Map and Debugger Blueprint, ensure "Show Plugin Content" is checked in your Content Browser settings.