From 40842ec7941da4c56a6ab7679216b7a2f0cafec8 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 10 Mar 2013 13:33:52 +0100 Subject: [PATCH] Fixed Vector3::add() --- src/math/Vector3.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/math/Vector3.php b/src/math/Vector3.php index 7bbcdbfa..91f425df 100644 --- a/src/math/Vector3.php +++ b/src/math/Vector3.php @@ -86,9 +86,6 @@ class Vector3{ if(($x instanceof Vector3) === true){ return $this->add($x->x, $x->y, $x->z); }else{ - $this->x += $x; - $this->y += $y; - $this->z += $z; return new Vector3($this->x + $x, $this->y + $y, $this->z + $z); } }