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

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.

主站蜘蛛池模板: 东明县| 巍山| 大庆市| 闽清县| 碌曲县| 故城县| 民县| 南宁市| 梓潼县| 策勒县| 江华| 武强县| 甘洛县| 南江县| 宜兴市| 平山县| 八宿县| 滨州市| 东辽县| 漾濞| 皋兰县| 都匀市| 老河口市| 博爱县| 大同市| 若尔盖县| 福清市| 会昌县| 前郭尔| 上饶县| 松原市| 商丘市| 靖边县| 吕梁市| 滨州市| 饶河县| 玉环县| 察雅县| 桐梓县| 会理县| 大冶市|