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 Slapworth · Feb 16, 2014 at 07:31 AM · animationmecanimtutorialdoor

Looking for tutorial for door animation using mecanim

Hi -

I'm trying to find a specific kind of tutorial or documented example for building an animating door using Mecanim. It's clear you CAN build such a thing, but despite multiple Google attempts, I can't find a link that explains the process clearly. (I've seen threads that discuss such a system, without detailing every aspect of its creation.) And it's hard to find a Mecanim tutorial that isn't focused on character animation, which covers much more ground than I'm dealing with right now.

The system I need to build has these requirements:

  • This is a 2D game, using animations hand-built in the Animation window. * has a door (actually a pair of double-doors that operate in sync, driven by a single animator) that can be in open or closed states.

  • They need to start in either closed or open position. (My current attempt has them running either their "open" or "close" animation on game start.)

  • I should be able to flip between open and closed state at any time, and (preferably) be able to switch from opening to closing in mid-animation.

Does anyone here know of a good introductory Mecanim tutorial, that builds a simple "open-closed" (or "opening-open-closing-closed") state machine, and explains every aspect of it? 2D would be preferable but I should be able to translate ideas back from 3D to 2D. Even a simple (non-character-based) Mecanim tutorial would be a great help.

Thanks for any leads you can provide.

UPDATE: I rewatched the Doors portion of the Stealth tutorial, which showed one approach (putting a single frame in each animation node, and letting the blend drive the movement between frames). This works for now, but doesn't handle two things I want to do:

  • Have more complex door opening motion (such as moving through two keyframe poses during movement.

  • Be interruptible in mid-animation (my current Mecanim setup does not do this).

Thanks -- Slapworth

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by nertworks · Mar 12, 2014 at 12:37 AM

Brackeys has a good one.

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 Zaddo67 · Mar 12, 2014 at 01:31 AM 0
Share

Could you please post link.

avatar image
0

Answer by Slapworth · Mar 12, 2014 at 03:53 AM

Thanks for the tip. I hadn't heard of Brackeys before, looks promising!

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

20 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

Related Questions

Mecanim Tutorial lacking animation? 1 Answer

Converting legacy animation to mechanim 2 Answers

Animation Gets Clipped When Speed Is Changed (Mecanim) 1 Answer

How can I change a mecanim animation by pressing a key? 1 Answer

Turn off root motion for a specific animation 4 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