Skip to content

Commit

Permalink
[Assimp] Fix ToStrideQuaternion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jklawreszuk authored Aug 7, 2023
1 parent 77a15f8 commit 1cb106c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/tools/Stride.Importer.Assimp/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ public static Core.Mathematics.Vector3 ToStrideVector3(this System.Numerics.Vect
public static Color ToStrideColor(this System.Numerics.Vector4 v)
=> new Color(v.X, v.Y, v.Z, v.W);

//Assimp uses Quaternion WXYZ ordering convention
public static Core.Mathematics.Quaternion ToStrideQuaternion(this AssimpQuaternion q)
=> new Core.Mathematics.Quaternion(q.X, q.Y, q.Z, q.W);
=> new Core.Mathematics.Quaternion(q.W, q.X, q.Y, q.Z);

public static unsafe uint GetNumUVChannels(Silk.NET.Assimp.Mesh* mesh)
{
Expand Down

0 comments on commit 1cb106c

Please sign in to comment.