项目3:第三人称越野街机赛车游戏。简介
This project will let you learn how to create a simple offroad car driving arcade simulator.本项目将带你学习如何创建一个简单的越野汽车驾驶街机模拟器。
Using the C++ Component System and the built-in physics system, we will create a controlled car that must drive a given track within the predefined time. We will also learn how to create the terrain for the game.我们将使用C++组件系统和内置物理系统,创建一辆可控的汽车,要求在预设时间内沿指定路线行驶。我们还将学习如何为游戏创建地形。
Creating a New Project Using a Template World使用模板世界创建新项目#
While working on this project, we will use a set of ready-made assets included in the add-on, which we downloaded in Section 6.2.在本项目中,我们将使用一组预制资源,这些资源包含在附加包中,该包已在第 6.2 节中下载。
- Create a new empty C++ project. Open the SDK Browser, go to the My Projects tab, and click Create New.创建一个新的空C++项目。打开 SDK 浏览器,进入My Projects标签页,点击Create New。
- In the window that opens, be sure to select C++ (Visual Studio 2015+) from the API + IDE list, select Float precision, and click Create New Project.在打开的窗口中,务必从API + IDE列表中选择C++ (Visual Studio 2015+),选择Float精度,并点击Create New Project。
- Once the new project is created, it will appear on the My Projects tab. Click Open Editor under the created project to open it in UnigineEditor.项目创建完成后,它会出现在My Projects标签页中。点击所创建项目下方的Open Editor,在 UnigineEditor 中打开它。
-
Once UnigineEditor is launched, a template world will open where we will start working.启动 UnigineEditor 后,将打开一个模板世界,我们将在其中开始工作。
Select and delete the material_ball node as we won't need it.请选择并删除material_ball节点,因为我们不会用到它。
- Open the folder with the downloaded UNIGINE Course Projects add-on (this was done in Section 6.2).打开包含已下载 UNIGINE Course Projects 附加包的文件夹(该操作已在第 6.2 节中完成)。
- Drag the UPACKAGE file of the add-on to the data/ folder in the Asset Browser window.将附加包的UPACKAGE文件拖到data/文件夹中的Asset Browser窗口内。
- In the Package Manager window, select the data/race folder, click Import Package and wait for the import process to complete.在资源包管理器窗口中,选择data/race文件夹,点击Import Package并等待导入过程完成。
本節中的文章
本页面上的信息适用于 UNIGINE 2.20 SDK.