From 041d07ca819e5c9625789fbd11348fd6e7eba459 Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Wed, 13 Nov 2024 13:41:44 +0800 Subject: [PATCH] Correct matrix operation order --- src/nme/geom/Matrix3D.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nme/geom/Matrix3D.hx b/src/nme/geom/Matrix3D.hx index 472b0eef1..44fea798a 100644 --- a/src/nme/geom/Matrix3D.hx +++ b/src/nme/geom/Matrix3D.hx @@ -515,10 +515,10 @@ class Matrix3D { var x:Float = v.x, y:Float = v.y, z:Float = v.z; return new Vector3D( - x * rawData[0] + y * rawData[1] + z * rawData[2], - x * rawData[4] + y * rawData[5] + z * rawData[6], - x * rawData[8] + y * rawData[9] + z * rawData[10], - 0); + x * rawData[0] + y * rawData[4] + z * rawData[8], + x * rawData[1] + y * rawData[5] + z * rawData[9], + x * rawData[2] + y * rawData[6] + z * rawData[10], + 1); }