官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 潞城市| 庆云县| 津市市| 克山县| 和政县| 宁安市| 河南省| 大冶市| 德保县| 思南县| 丹巴县| 太仆寺旗| 兴山县| 张北县| 景泰县| 青海省| 宁安市| 萍乡市| 新巴尔虎右旗| 枣阳市| 江安县| 宁国市| 阳山县| 虎林市| 四子王旗| 宝山区| 晋宁县| 潮安县| 福海县| 炎陵县| 赤壁市| 武威市| 垣曲县| 观塘区| 手游| 新化县| 宣汉县| 峨眉山市| 互助| 长岛县| 星座|