Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by jpthek9 · Jan 04, 2015 at 06:15 AM · physicsnavmesh

Navmesh Agent With Physics?

How can I run the Navmesh Agent in FixedTimestep to interact with physics? After some testing, I found out that it runs with every Update frame so calculated positions aren't synchronous and can't be used with physics.

With a synchronized start, the navigation is deterministic which is why I want to use it in FixedUpdate to be in sync with the cycles of my lockstep RTS game.

Comment
Add comment · Show 9
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 Mmmpies · Jan 04, 2015 at 09:24 AM 0
Share

You bake the Nav$$anonymous$$esh into a scene so it calculates the available paths, that's done before the game runs and saved in some form of data structure.

When running the game if you set a target it calculates a path but that calculation may take more than one frame to run.

I don't know the full details but more importantly are you actually having any issues with Nav$$anonymous$$esh or is this just a question of curiosity?

avatar image jpthek9 · Jan 05, 2015 at 12:37 AM 1
Share

Curiosity. Does this better belong in a forums thread?

avatar image jpthek9 · Jan 30, 2015 at 08:20 AM 0
Share

Bump, does anyone know this? I couldn't find it in the documentation.

avatar image Baste · Jan 30, 2015 at 09:57 AM 0
Share

Should be easy enough to test - set the Fixed Timestep to 1. If the Nav$$anonymous$$eshAgent moves only once every second, it's moving based on FixedUpdate. If it moves as before, it's on the normal Update loop.

I'm suspecting Update, as the agents are not using physics in their movement through the navmesh; they just glide along the mesh like dumb ghosts.

avatar image Mmmpies · Jan 30, 2015 at 09:38 PM 1
Share

Don't know without knowing what you want to achieve but just post a new question saying what you want to do and what testing you've done (just link this question for speed).

Also getting pretty late where I so may not respond immediately.

Just trying to keep answers clearer and give you a better chance to get a fix for what you want to do.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by jpthek9 · Jan 30, 2015 at 10:05 PM

After some tests, I've concluded that pathfinding and navigation run with Update frames. Now I need some way to run it with FixedUpdate for synchronization. http://answers.unity3d.com/questions/889836/using-unity-navigation-in-a-fixed-timestep.html

Comment
Add comment · 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

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

27 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

Related Questions

Nav Mesh Agent won't fall off the platform? 1 Answer

Navmeshagents and Physics Materials 0 Answers

How do I apply force for movement when using the NavmeshAgent for navigation? 1 Answer

NavMeshAgent hindered by rigidbody 2 Answers

Navmeshpathstatus is not working. 0 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