首页 > 编程语言 > 详细

Unity - NavMeshAgent-GetStart

时间:2020-06-02 18:53:30      阅读:48      评论:0      收藏:0      [点我收藏+]
  • Select scene geometry that should affect the navigation – walkable surfaces and obstacles.

  • Check Navigation Static on to include selected objects in the NavMesh baking process.

  • Adjust the bake settings to match your agent size.

  • Step Height defines how high obstructions are that the agent can step on.

  • Click bake to build the NavMesh.

  • Create a cylinder: GameObject > 3D Object > Cylinder.

  • The default cylinder dimensions (height 2 and radius 0.5) are good for a humanoid shaped agent, so we will leave them as they are.

  • Add a NavMesh Agent component: Component > Navigation > NavMesh Agent.

技术分享图片

效果:
技术分享图片

手册 Building a NavMesh

Unity - NavMeshAgent-GetStart

原文:https://www.cnblogs.com/Jaysonhome/p/13032471.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!