- Unity Artificial Intelligence Programming
- Dr. Davide Aversa Aung Sithu Kyaw Clifford Peters
- 155字
- 2021-06-10 18:57:49
Setting up waypoints
Next, we will put four Cube game objects at random places. They represent waypoints inside our scene and, therefore, we name them WandarPoints:
WandarPoints
Here is what our WandarPoint object will look like:
WanderPoint properties
Note that we need to tag those points with a tag called WandarPoint. Later, we use this tag when we try to find the waypoints from our tank AI. As you can see in its properties, a waypoint is just a Cube game object with the Mesh Renderer checkbox disabled, and the Box Collider object removed.
We can select the gizmo icon by clicking the small arrow near the object's name in the inspector
We could even use an empty object with a gizmo icon since all we need from a waypoint is its position and the transformation data. However, we're using the Cube objects here so that waypoints are easier to visualize.
推薦閱讀
- SOA用戶(hù)指南
- Twilio Cookbook
- GPS/GNSS原理與應(yīng)用(第3版)
- Django 2 by Example
- 萬(wàn)物互聯(lián):蜂窩物聯(lián)網(wǎng)組網(wǎng)技術(shù)詳解
- 2018網(wǎng)信發(fā)展報(bào)告
- Android UI Design
- 沖擊:5G如何改變世界
- Dart Cookbook
- 園區(qū)網(wǎng)絡(luò)架構(gòu)與技術(shù)
- Guide to NoSQL with Azure Cosmos DB
- 物聯(lián)網(wǎng)
- 人際網(wǎng)絡(luò)
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(理論篇)
- 無(wú)線傳感器網(wǎng)絡(luò)定位方法及應(yīng)用