mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
rewrite of interact system, bugfixes, ai tweaks
This commit is contained in:
parent
f5222be9d2
commit
ac1a1b2449
62 changed files with 649 additions and 491 deletions
20
src/math/Vector3Pos.php
Normal file
20
src/math/Vector3Pos.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue