pocketmine\entity\Minecart::moveUsingVector PHP Method

moveUsingVector() private method

Invoke the normal move code, but first need to convert the desired position vector into the delta values from the current position.
private moveUsingVector ( Vector3 $desiredPosition )
$desiredPosition pocketmine\math\Vector3
    private function moveUsingVector(Vector3 $desiredPosition)
    {
        $dx = $desiredPosition->x - $this->x;
        $dy = $desiredPosition->y - $this->y;
        $dz = $desiredPosition->z - $this->z;
        $this->move($dx, $dy, $dz);
    }