• 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
Question by falconer · Aug 05, 2014 at 12:55 PM · animationmecanimlegacyanimation

Best way to animate a soccer goalkeeper

Hello guys, I'm developing a flick soccer kind of game. I know coding to an extent and I'm really new to animating things. On searching through this forum I found that the best way to animate is to use the Unity mecanim. I also downloaded the unity mecanim character animation pack. The thing that baffled me was the character was animated in such a way that it was moving without any scripting, or may be there was some script for moving the character, which I might have missed. If I have not missed anything, and if my assumption of "animate as if the character was tied to a rope, move it with a script later" so that we can have more control on the animation later. Kindly suggest me how should I proceed with this.

P.S. I want to animate a goalkeeper so that he can save the ball from ending up into the net.

Comment
aman_jha

People who like this

1 Show 3
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 arain55 · Aug 05, 2014 at 01:26 PM 0
Share

have u got any animating softwares

avatar image Paulo-Henrique025 · Aug 05, 2014 at 01:31 PM 0
Share

Hi mate, I think your question is more suitable for the Forum, as it allows discussion.

avatar image Andres-Fernandez · Aug 05, 2014 at 01:33 PM 0
Share

Have you checked the tutorials on animation and mecanim? What have you tried?

2 Replies

  • Sort: 
avatar image
Best Answer

Answer by aman_jha · Aug 05, 2014 at 01:39 PM

Ok first off if you're planning to use mecanim check out this 1 hour-ish long tutorial by Unity. https://www.youtube.com/watch?v=Xx21y9eJq1U I actually needed only the first fifteen minutes or so, but it helped me a TON.

You seem confused about how the character way moving without script. Let me clear that up for you. When a gameobject has an animator controller on it, it has the option of "Applying root motion". Having it checked means the animations can move the actual player. The animations are created in another software. I'd recommend Blender or 3DS Max; I have both. I usually have my charaqcter move by script and disable root motion, but since you're animating a goalkeeper, I think you should have it enabled.

So to animate your goalkeeper, I'd do these steps:

  • Make a goalkeeper character. Rig it in a T-Pose for best results. You can animate your character in the same software you created it.

  • I'd recommend 6 animations: One for jumping far on the left, jumping far on the right, one jumping close on the left, close on the right, and two for bending down and grabbing the ball from right below him and the ball right above him.

  • Import to Unity. This is different for different software but exporting each animation as a FBX file is a good idea.

  • Click on your character model and go to the rigging tab and change his type to "Humanoid".

  • Now make an animator for the goal keeper and edit it to have all the animations stem from an idle pose

  • Make your script detect where the ball is in relation to the player. I'd use box colliders but you can do whatever you want. Then call the animation function from the goalkeeper script.

  • Don't forget to add some perlin noise to the jump to make sure the goalkeeper doesn't always save the ball

Good luck!

Comment
falconer
fcodiaz8
JMEJAY

People who like this

3 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 falconer · Aug 05, 2014 at 04:43 PM 0
Share

Super answer

avatar image

Answer by tanoshimi · Aug 05, 2014 at 01:34 PM

Mecanim is a state-driven animation system. You write scripts that move the Animator controller between various states, and each state has an associated animation. If your character's animator controller is currently in the "Climbing a rope" state (perhaps that is the default state for your controller) and none of the exit conditions are met, then that animation will simply continue to play without any scripting.

Comment

People who like this

0 Show 0 · 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

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

25 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

Related Questions

Why my animation isn't working with Mecanim 0 Answers

is Mecanim Animator.Play(myState, level, myNormalizedTime) really a good alternative to Legacy animation normalizedTime? 0 Answers

Make character with avatar use legacy animation 0 Answers

Is Mecanim Animator.SetLookAtPosition for Unity Pro only? 2 Answers

Edit AnimationClip during runtime from script 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