This page goes through how to create the 3D Game using the Unreal Engine
The advantage of using this engine is that it lets you make the game for any system. I will install it using Windows but you can also run it on your Mac if you wish to.
Visual Studio Community 2019 allows you to install the Unreal Engine. Unfortunately I couldn’t see this option in Visual Studio Community 2022, but you can install both versions until this gets updated possibly by Microsoft.
You then run the Epic Games Launcher and need to create an account.
Some documentation on Unreal is below: