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 zKici · Mar 12, 2014 at 11:13 PM · animationlegacygeneric

Animation (Turning) starts from original rotation

Hello,

I have a turn Animation that does a 180 degrees for example to the left, however when I play this rotation I would like it to play 2 times meaning it does a full 360 degree turn, the problem is, the 2nd play starts the "turn" from the original position the character was staying in before it did the 1st turn, so it literally ignores its current rotation and starts over...

I am trying to use Legacy animations, or Generic whatever works best I guess, I've went down the path of Mecanim but decided that is not something I want to pursue, please let me know how to make the character continue the "animations" of where it left off not of where it was animated in the X,Y,Z axis... seems to reset on any animation I believe,

thanks

edit: I just realized the "character" actually does not rotate in unity it stays 0,0,0 even though it is turning... I've tried setting the root transform rotation, position etc.

Edit: I am trying to accomplish the same type of character controller such as the Mecanim Teddy Bear NavMesh demo scene, turning, walking, running etc.

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 instruct9r · Mar 12, 2014 at 11:41 PM 0
Share

Best is $$anonymous$$ecanim :). I can help you there, but not in the legacy

avatar image zKici · Mar 13, 2014 at 12:12 AM 0
Share

The only problem with $$anonymous$$ecanim is that your animations have to be animated as if the character was "walking" /running etc, however my animations were done in a static position...

avatar image instruct9r · Mar 13, 2014 at 01:54 PM 0
Share

You don't have to animate the character to be moving while walking / running, to be able to animate them in $$anonymous$$ecanim You can do them in static position as well. I am currently developing a game and i have both ways of animations and it works great...

avatar image zKici · Mar 13, 2014 at 02:12 PM 0
Share

Oh, so how does $$anonymous$$ecanim make the character "walk" ? I'm still trying to understand this and there isn't much information to go on for

avatar image instruct9r · Mar 13, 2014 at 11:16 PM 0
Share

You can have 2 ways. First: $$anonymous$$ake the character Walk / Run by moving forward, then in Unity you just set it up in a way, so the character controller moves with the animations, that the rig have when it was imported. Second way: Animate Walk / Run on place and then in Unity you set it up, so the character is walking / running on place and you script the forward movement, this way you only have to adjust the speed of the movement, so your character's feet doesn't slide. Both ways have their up's and down's, though i think the first way is better, because you can still adjust the speed of the movement, by changing the clips speed and you'r character will never slide on the ground...

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Gooey-Man · Mar 13, 2014 at 02:38 AM

Your animation just replays over and then again. You can't tell it to add a certain amount of degrees but just to start, fade, and finish. You have to make another animation that turns a full 360.

Comment
Add comment · Show 6 · 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 zKici · Mar 13, 2014 at 11:49 AM 0
Share

so that is the reason we need to use $$anonymous$$ecanim ??? because in $$anonymous$$ecanim it just adds to the rotation....?

avatar image StrykerS. · Mar 13, 2014 at 12:08 PM 0
Share

$$anonymous$$ecanim doesn't work that way. It only blends animations together not positions. Even if you were using two animations as key frames (one at 0 degrees and one at 180 degrees) mecanim would have no way of knowing which direction to turn toward when blending between the two. This would probably result in some strange behavior or it would rotate left 180 degrees then back right 180 degrees or right 180 degrees then left 180 degrees. If all your doing is a turn table to display your object the best way to do that is to use the animation window in unity or a 3rd party application like blender if its a model then loop the animation.

avatar image zKici · Mar 13, 2014 at 12:14 PM 0
Share

What I am actually trying to do is copy the exact same "Nav$$anonymous$$esh Teddy Bear demo scene" basically, forward, turn, etc. but my animations were done in Cycle animations not progressive, so I don't understand how to accomplish this, by the sounds of it I don't understand how the $$anonymous$$ecanim system works neither

avatar image StrykerS. · Mar 13, 2014 at 02:22 PM 0
Share

Oh okay, the Nav$$anonymous$$eshAgent component is handling the actual movement of the character. While animation is handled by mecanim. So you have to use the Nav$$anonymous$$esh system or create your own script to handle the actual movement of the character in world space.

avatar image zKici · Mar 13, 2014 at 02:43 PM 0
Share

We disable the rotation and update the walk/rotation from the mecanim itself, i believe there is a Synch script included or something like that that disables navmesh from rotating the character & moving it, it just allows the destination and other things to be set

Show more comments

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

23 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

Related Questions

Legacy vs. Generic vs. Humanoid pros and cons? 1 Answer

Animation won't play as Generic but it does as Legacy, I need to use Generic, how can I fix this? 2 Answers

i get weird rotations on my animated objects using legacy, help? 0 Answers

A node in a childnode? 1 Answer

Animations messing up character 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