Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by imM4TT · Jul 10, 2018 at 04:21 PM · navmeshagentslopefalling-through-terrain

NavMeshAgent & slope issue

Hi
I have a character with that newmeshagent, when the terrain is flat everything works as expected.
But if here is any slope the character is like falling a bit (falling on the slope) when it reached the destination and he is also rotating.
I have tried to set the angular velocity to 0 when the destination is reached, to increase the stop distance etc
Help please

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image nipunIT · Nov 13, 2018 at 10:53 AM 0
Share

do u got solution , I am also facing same issue , my issue

avatar image imM4TT · Nov 13, 2018 at 12:17 PM 0
Share

As I remember, I had forgotten to update the navmesh to the terrain and my mesh was like flat when in fact the terrain wasnt I dont exactly remember where you can update it, look on your navmesheagznt settigs maybe

avatar image nipunIT · Nov 13, 2018 at 01:14 PM 0
Share

@im$$anonymous$$4TT I tried everything , then its not moving perfectly on slope

avatar image imM4TT · Nov 13, 2018 at 10:16 PM 0
Share

@nipunIT did you tried to bake the terrain as I mentioned before ? https://docs.unity3d.com/uploads/$$anonymous$$ain/Nav$$anonymous$$eshSetupBake.svg ( part 4 on this pict ) You can also look, if it's not already done, to the max slope & others settings
Check this too

avatar image nipunIT · Nov 14, 2018 at 06:51 AM 0
Share

@im$$anonymous$$4TT , I tried all possibility of baking, I am not using terrain, I used road using blender. See this Question and property

1 Reply

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by tormentoarmagedoom · Jul 11, 2018 at 07:37 AM

Good day.

If your nave mesh agent is moving the object as you want, and the problem is only when it reaches the destination, the problem is not in the navmesh agent.

Once it reaches the destination, it will stay "inactive" until new destination is set.

So when is "quiet", if it goes down the hill, is due gravity. It have a rigidboy right?

You can set the rigidbody as "No use gravity" and "Kinematic" (this means only code will move it).

And i supose the problem will gone :D

Bye!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image imM4TT · Jul 11, 2018 at 05:05 PM 1
Share

Yep, when I set the rigidbody as $$anonymous$$inematic, he don't fall, it's perfect.
I already tried to disable the gravity but that didnt worked.
$$anonymous$$any thanks =)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

89 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

NavmeshAgent Behavior 0 Answers

No player is colliding with enemy even with capsule collider !!! Please me help me. 0 Answers

NavMeshAgent Not Working? 1 Answer

A way to check if an off mesh link is nearby? 0 Answers

Problem with AI and pathfinding. 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges