Merge commit '260869c0d5904401178419c99e1f26e32b6ba07e'

This commit is contained in:
Dylan K. Taylor 2020-01-18 18:22:12 +00:00
commit ebce102167

View File

@ -42,6 +42,12 @@ class Position extends Vector3{
$this->setWorld($world);
}
/**
* @param Vector3 $pos
* @param World|null $world
*
* @return Position
*/
public static function fromObject(Vector3 $pos, ?World $world = null){
return new Position($pos->x, $pos->y, $pos->z, $world);
}