bepu / bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.
Apache License 2.0
2.4k stars 274 forks source link

Refactoring: better safety by replacing 'struct' generic restriction … #84

Closed dimaaan closed 4 years ago

dimaaan commented 4 years ago

…with 'unmanaged'. Bump VS min ver to 15.7 for C#7.3

RossNordby commented 4 years ago

This is a change I've been wanting to make for a while, but it requires C# 8.0 to work. 7.3 does not allow unmanaged constructed types. I don't think unmanaged constructed types are a feature that has a runtime dependency, but full compatibility with .NET Standard 2.0's targets needs to be verified. I'll take a look.

RossNordby commented 4 years ago

Looks like there aren't any blockers. I went ahead and did it in 3a1fcf1e6d2535fc8e67b1fba679dc3e37b7ffea; it includes these changes plus some more comprehensive related updates.