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

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.

主站蜘蛛池模板: 无锡市| 怀来县| 沈阳市| 昂仁县| 沂源县| 泾阳县| 长治县| 江都市| 泸州市| 江安县| 大方县| 谢通门县| 三江| 高清| 江华| 祁东县| 将乐县| 申扎县| 新建县| 娄底市| 麻江县| 织金县| 淅川县| 蒙山县| 张掖市| 平度市| 吴江市| 新疆| 轮台县| 枣强县| 广州市| 中宁县| 平山县| 磐石市| 仙桃市| 陵水| 邵武市| 隆回县| 永州市| 岗巴县| 武威市|