Skip to content

Commit

Permalink
Rotation matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia committed Apr 24, 2024
1 parent 3276727 commit 44a5fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DCL_PiXYZ/PiXYZWorflow/PXZMathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void Rotate(this Matrix4 matrix4, Quaternion rotation)
{
//Transformation from Unity coordinates to PiXYZ coordinates
Quaternion rightHandedQuaternion = new Quaternion(rotation.X, -rotation.Y, -rotation.Z, -rotation.W);
matrix4.ApplyResult(Matrix4x4.Multiply(matrix4.ToMatrix4x4(), Matrix4x4.CreateFromQuaternion(rightHandedQuaternion)));
matrix4.ApplyResult(Matrix4x4.Multiply(Matrix4x4.CreateFromQuaternion(rightHandedQuaternion), matrix4.ToMatrix4x4()));
}

public static void Scale(this Matrix4 matrix4, Vector3 scaleFactors)
Expand Down

0 comments on commit 44a5fc9

Please sign in to comment.