pocketmine\entity\Entity::addMovement PHP Method

addMovement() public method

public addMovement ( $x, $y, $z, $yaw, $pitch, $headYaw = null )
    public function addMovement($x, $y, $z, $yaw, $pitch, $headYaw = null)
    {
        $this->level->addEntityMovement($this->chunk->getX(), $this->chunk->getZ(), $this->id, $x, $y, $z, $yaw, $pitch, $headYaw === null ? $yaw : $headYaw);
    }