-
Notifications
You must be signed in to change notification settings - Fork 1
Boat
dennis9707 edited this page Sep 15, 2020
·
1 revision
Two boat prefabs are provided and located in the Object\Boat
folder.
To control the boat manually, add the HumanController.cs
script to the boat which located in Assets/Scripts/Boat
. To create boat that is controled by AI, add the AIController.cs
to the boat object. The path calculation of the AI is completed using NavMesh
, by default the AI boats would automatically travel to the Destination
point. You could customise the destinaiton location by yourself.
To midify the movement of the boat, change the engine
script of the boat. The boat is controlled by the EventSystem of Unity. The settings are inside Assts\Data\InputControls.inputactions