Is System.Numeric.Vector3 and VL's Vector3 interchangeable in gamma?

I’m trying to write code in C# and using the native Vector3 type, which was recommended by the IDE (System.Numeric.Vector3)
But I was surprised to find that it didn’t connect. Am I doing something wrong or is this a bug?

изображение

изображение

ah yes, I add the code through the csproj file

No, they are a different data type. We use Stride.Core.Mathematics.Vector3. But I think the memory layout is the same, so you can use Unsafe.As<> in both ways. That will just reinterpret the memory without making a new copy.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.