magento2 – Magento 2 – Get simple products from grouped product

I figured it out. Found the answer in this file:

vendormagentomodule-grouped-productBlockProductViewTypeGrouped.php

public function getAssociatedProducts()
{
    return $this->getProduct()->getTypeInstance()->getAssociatedProducts($this->getProduct());
}