今回はUnityのNavMesh機能を使って、プレイヤーを自動的に追いかける敵キャラクターの動きを作ってみます。 はじめに 『パックマン』のような俯瞰型の2Dゲームにも、『バイオハザード』のような一人称(または三人称)視点の3Dゲームにも、プレイヤー ...
Navmeshのバージョンはこちら。Unityは2022.3.8f.1使ってます。 Navmesh version キャラクターが歩けるエリアをNavigaionウィンドウからいつもベイクしてたんですが、NavmeshSurfaceというアタッチできるスクリプトがあり、それをアタッチしてベイクするという流れになっ ...
An API based on the custom pathfinding code I keep having to write over and over. I thought it would be nice to have my base pathfinding code in one place, where other people can also benefit from it.
1 - Import the player.cs file to your Scripts folder at you Unity project 2 - Create a player object 3 - Add the player script to your player object 4 - Add Both CharacterController and NavMesh Agent ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する