I’m getting a Hard crash with Unity trying to implement Bepu v2. It looks like Unity’s JIT compiler expects memory to be laid out incorrect. This crash is specific to Unity.
from the output log:
* Assertion: should not be reached at ..\mono\mini\mini-amd64.c:6443```
I've attached a sample project.
The crash happens on line 72 of BepuPhysicsUnityTest.cs when attempting to call Test()
This only affects Box-Box collision in Bepu v2. All other collision seem fine. But still too breaking and makes Bepu V2 unusable in Unity.
Also is there a reason why Vector<T>.IsHardwareAccelerated returns false? Bepu v2 is nice cuz it's so fast, but is looking to be quite slow in Unity :(
Using Unity 2019.3.0a10
[4794527--458828--BepuV2_StackallocCrash.unitypackage|attachment](upload://snB5GvPEmHHsl3nORY1IDGrXl1n.unitypacka) (861 KB)