ACF-Team / ACF-3

ACF
MIT License
67 stars 54 forks source link

[BUG] rayMeshIntersect fails when given a spherical entity #343

Closed brandonsturgeon closed 1 year ago

brandonsturgeon commented 1 year ago

Short Description

I don't fully understand the situation in which this happens, but it's clear that rayMeshIntersect fails when given a spherical entity. This is due to GetMeshConvexes returning nil when run on a spherical entity's PhysicsObject.

It's probably a simple fix, but I don't understand the importance of this function, so I figured it was best left to the pros 😎

Branch and Version Latest, Stooberton@master

Console Error Logs (Optional)

https://github.com/Stooberton/ACF-3/blob/master/lua/acf/core/utilities/util_sh.lua#L276 https://github.com/Stooberton/ACF-3/blob/master/lua/acf/core/utilities/util_sh.lua#L322

image

Stooberton commented 1 year ago

Fixed in dfe75fc7c8456f6ec3b0d32edcca1321fde36b17 👍