Skip to content

Add basic XY bounding sphere culling#76

Merged
dbierek merged 2 commits into
glacier-modding:mainfrom
Joschuka:main
Jan 10, 2026
Merged

Add basic XY bounding sphere culling#76
dbierek merged 2 commits into
glacier-modding:mainfrom
Joschuka:main

Conversation

@Joschuka

@Joschuka Joschuka commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

A simple prepass to discard instances that would be "roughly" outside of the pathfinding include box:
-The XY extent of the bounding boxes of the instances and the pfIncludeBox are used to compute the radiuses of their respective bounding spheres
-If the spheres don't intersect, the instance is not added

This approach was chosen as checking for intersections between spheres is a simple distance check, compared to OBB intersections that require heavier computation.

@dbierek
dbierek merged commit 62b2a21 into glacier-modding:main Jan 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant