small changes to entity ai(again =/)

This commit is contained in:
GameHerobrine 2022-11-11 20:13:08 +03:00
parent c29d8dab9d
commit 978447cdbb
9 changed files with 44 additions and 41 deletions

View file

@ -16,6 +16,10 @@ class Vector3{
$this->z = $z;
}
public function copy(){
return new Vector3($this->x, $this->y, $this->z);
}
public function toArray(){
return ["x" => $this->x, "y" => $this->y, "z" => $this->z];
}