• 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 /
  • Help Room /
avatar image
0
Question by Quis · Jul 23, 2015 at 10:09 PM · rotationnavigationinstantly

Navigation agent to rotate instantly

Hello,

I am trying to figure out how to increase the speed of NavMeshAgent rotation to being instant, so that the Agent would ALWAYS face the direction that he is moving.

For example if I click just 1unit away towards the objects back, then it would turn 180degrees instantly the moment he start moving. Changing the default values did not help as it would never rotate fast enough even with values of 999999 on angular speed and acceleration.

Thanks for help :)

Comment
Add comment · Show 1
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 smallbit · Jul 24, 2015 at 03:20 AM 0
Share

If I remember correctly the rotation is actually faster with lower acceleration, give it a try. Or try to override the rotation editing transform component (lookAt). but I've never done it so cannot tell if this will work.

1 Reply

· Add your reply
  • Sort: 
avatar image
4

Answer by C_R_E_A_T_R_O_R · Sep 11, 2016 at 06:58 PM

@Quis

I had the same problem with a very fast agent i was using. In order to make it work exactly as you want you should set the Angular Speed to 900 - 999 and make sure that the Acceleration is a little bit higher than the Speed (eg: Speed = 14, Acceleration = 17)

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 mbrindic · Jul 28, 2017 at 01:06 PM 0
Share

Omg, you're right man! I spent hours on this... But finally I realize that angular speed is calculated based on both speed and acceleration!

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

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

Related Questions

Why Is My Enemy Rotating On X? 0 Answers

Nav Mesh Agent radius next to my game object causing a deviation. 0 Answers

How to Set a Single Axis Rotation of a GameObject? 11 Answers

Rotate arrow without unity physics engine. 0 Answers

transform.rotation interferes with transform.Rotate 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges