Fix Vector2

This commit is contained in:
kotyaralih 2021-12-13 07:49:52 -08:00
parent e93de3f7c8
commit 1c224bd643

View file

@ -47,9 +47,7 @@ class Vector2{
if(($x instanceof Vector2) === true){
return $this->add($x->x, $x->y);
}else{
$this->x += $x;
$this->y += $y;
return new Vector3($this->x + $x, $this->y + $y);
return new Vector2($this->x + $x, $this->y + $y);
}
}