Open Phyksar opened 1 year ago
Updated trace solver, this should hopefully be fixed now.
@aylaylay The vertex/capsule intersection is now working, but the HitPosition
is not reporting the actual hit position for the capsule trace and also the EndPosition
has an extra offset of 0.0313
units, all this isn't a problem for a sphere trace.
https://github.com/sboxgame/issues/assets/13320416/353aa02d-9e5f-4f30-a45d-5255d07530e6
Describe the bug
Trace.Capsule
returns invalid results when encountering a corner/vertex, the distance is less than expected and the normal is counter-directional to the direction of the trace. This happens only with corner intersection case, other surface and edge cases are working correctly. Also I'm suspecting that HitPosition is not what it should be, forTrace.Sphere
it represents the contact point on sphere, while in my case it's just the center of the capsule which is a totally useless data.To Reproduce
Expected behavior
The trace result shound not jump around the corners and normal should be computed correctly.
Media/Files
https://user-images.githubusercontent.com/13320416/217093600-35a08d18-72a1-45b6-89c6-9c10bf081ce6.mp4
https://user-images.githubusercontent.com/13320416/217095654-34f740c3-a9fa-4140-861a-446c33e78076.mp4
Additional context
No response