rewrite of interact system, bugfixes, ai tweaks

This commit is contained in:
GameHerobrine 2022-11-01 00:55:49 +03:00
parent f5222be9d2
commit ac1a1b2449
62 changed files with 649 additions and 491 deletions

20
src/math/Vector3Pos.php Normal file
View file

@ -0,0 +1,20 @@
<?php
class Vector3Pos extends Vector3
{
public $x, $y, $z;
public function __construct(&$x, &$y, &$z){
$this->x = &$x;
$this->y = &$y;
$this->z = &$z;
}
public function addToValues($v){
$this->x += $v->x;
$this->y += $v->y;
$this->z += $v->z;
return $this;
}
}