diff --git a/src/nme/geom/Vector3D.hx b/src/nme/geom/Vector3D.hx index 650271587..392258554 100644 --- a/src/nme/geom/Vector3D.hx +++ b/src/nme/geom/Vector3D.hx @@ -157,7 +157,7 @@ class Vector3D public function addScaled(v:Vector3D, s:Float):Vector3D { - return new Vector3D(x + v.x*s, y + v.y*s, z + v.y*s, 1); + return new Vector3D(x + v.x*s, y + v.y*s, z + v.z*s, 1); }