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
1
Question by 199christoff · Mar 14, 2013 at 05:42 PM · animationmecanimjumpnavmesh

Navmesh Jump Animation

Hi has anyone know anything about navmesh jump animations , I have set up my navmesh and have the jump point's working I just need help on how to get it to play different animations when it detects the jump point's.

I have used Mecanim for my animations and for now while I prototype have used unity's example bear from the nav mesh example.

However I have my own AI script, just using the example for the animations.

What I am having issues with is trying to play/blend a jump animation. Not sure what I should do, hope someone can help and im sure the community will learn from anything that anyone has to offer as I haven't been successful while researching this topic.

Thanks in advance

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by superme2012 · Jun 30, 2013 at 02:33 PM

I did this little quick script to detect when the NavMeshAgent is jumping, not sure if its of any use to you:

string linkType = GetComponent().currentOffMeshLinkData.linkType.ToString();

if(linkType == "LinkTypeJumpAcross"){ Debug.Log ("Yeah im in the jump)"); //Activate animation here }

The other way is to use

NavMeshAgent.isOnOffMeshLink (its a bool)

What would be needed is the calculation of the distance and the height, I guess you could use that data in a blend tree to get the desired result. I’m new to mecanim so not sure what is and is not possible yet.

Comment
Add comment · Show 2 · 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 senrohit · Jul 01, 2013 at 02:50 AM 0
Share

I have a problem which is slightly different "supreme2012". I want my character to jump with force in both forward and upward direction. How can it be done provided I do not want to work with horizontal/vertical axes inputs. I have the animation of Jump with force in both upwarda and forward direction. Hoew do I solve it?

avatar image superme2012 · Jul 01, 2013 at 03:14 AM 0
Share

You may be able to use the Nav$$anonymous$$eshAgent as a proxy object and set the position of the character to match the position. That way the character can move interdependently without worry about moving the Nav$$anonymous$$eshAgent up or down. Its how I would do it.

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

12 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

Related Questions

how to set mecanim parameters for an ai? 0 Answers

C# Help with setting up jump animation 0 Answers

Teddy Bear Mecanim NavMesh (my animations don't work) 0 Answers

Mecanim jump animation 0 Answers

Rotate Mecanim animation during Navmesh path finding. 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