LoginSignup
2
0

More than 3 years have passed since last update.

NavMeshが若干浮いてしまう時の対処法

Posted at

問題

あるオブジェクトに対してNavMeshを張る時、そのオブジェクトからNavMeshが微妙に浮いてしまう。


斜め上から普通に見た時は全く気にならないのですが、

スクリーンショット 2019-07-23 午後2.57.12.png

このように横から見るとNavMeshとオブジェクトの間に隙間が生まれているのが分かると思います。

スクリーンショット 2019-07-23 午後2.57.42.png

原因

NavigationウィンドウのBakeタブにあるAgent Heightが大き過ぎる時にこのようなことが起こるみたいです。

The NavMesh may not be generated properly as the ratio between Agent size and voxel size is large. Try setting voxel size to larger than 0.394.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

スクリーンショット 2019-07-23 午後3.22.28.png

解決法

以下のどちらかの方法が有効だと考えられます。

  • Agent Heightを小さくする

  • Manual Voxel Sizeにチェックを入れ、Voxel Sizeを大きくする

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0