Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Softbody doesn't collide with some triangles in mesh since 5.5
#11
(25-09-2020, 04:31 PM)MattS Wrote: Very true! 

Worse case it's slightly sub-optimal, but it works now which is the main thing so I consider this issue fixed.

Thank you for being generous with your time Sonrisa

No worries!

I've been adding a few more unit tests to the partition to robustly cover edge cases (all elements smaller than the pivot, all elements larger than the pivot, all elements equal to the pivot), and adjusted the algorithm to pass them.

Find the updated BIH.cs file attached.

cheers!


Attached Files
.cs   BIH.cs (Size: 11.97 KB / Downloads: 3)
Reply