dexyfex / CodeWalker

https://www.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map
469 stars 205 forks source link

Correctly calculate BVH item extents #204

Closed coltfox closed 1 year ago

coltfox commented 1 year ago

The bounding box calculations for Composite BVH items were incorrect which was causing a lot of issues for certain collisions. For example, prop_gas_tank_01a.yft would not react to certain weapons and the character's head could clip through it in certain spots.

These calculations have been tested with the original files and are exactly the same in 99.98% of files. In the remaining 0.02% of files, the error is usually only about 0.1 or 0.01 give or take.