- 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.
推薦閱讀
- MERN Quick Start Guide
- Oracle SOA Suite 11g Performance Tuning Cookbook
- 農(nóng)產(chǎn)品物聯(lián)網(wǎng)研究與應(yīng)用
- 正在爆發(fā)的互聯(lián)網(wǎng)革命
- NB-IoT物聯(lián)網(wǎng)技術(shù)解析與案例詳解
- 5G+區(qū)塊鏈
- 深入理解OpenStack Neutron
- 從實(shí)踐中學(xué)習(xí)手機(jī)抓包與數(shù)據(jù)分析
- 轉(zhuǎn)化:提升網(wǎng)站流量和轉(zhuǎn)化率的技巧
- 云工廠:開啟中國(guó)制造云時(shí)代
- Hands-On Reactive Programming in Spring 5
- INSTANT Social Media Marketing with HootSuite
- Corona SDK Application Design
- 智能物聯(lián)安防視頻技術(shù)基礎(chǔ)與應(yīng)用
- 目標(biāo)跟蹤中的群智能優(yōu)化方法