Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 WKS · Jul 05, 2011 at 09:29 AM · animationdoordrawkeyframe

Maya to Unity Animation using Box Colliders

Hi guys,

Im currently developing a piece of software for use in Kitchen Showrooms. The animation which is keyframed in maya is of opening doors, attached to units via hinges.

Basically, the scene contains the Door, and hinge as the animation is contained in the hinge, and the Door is parented to this.

The Units (empty carcasses) are a separate Maya Document, with no Keyframe Animation.

I understand, that once the Maya file is imported into Unity, the FBX import settings have to be edited to support the Animation which is done. Its simple a case of "open" 0 - 40 and "close" 41-100. The open and close tags are contained within the code.

In a typical scene, a customer will select a Carcase (unit) and then select their desired frontal (door). In some cases, these units contain Drawerboxes. All the content has the same Animation settings, timings and so on. Once the content is placed live, or for that case staging, the frontals and draws should open on 'click'. And, they do. The drawerboxes open on click, and close on click. As for the frontals, they do indeed open however they do not close. Due to the fact that the box colliders are placed onto all objects, for usability we decided that the user is able to click the carcase drawerbox to open and close.

The Units contain Animation import data, as do the frontals. So, the non animated Unit, we have the same animation settings ad the frontal so that our code can track whether the door is open or closed. Its puzzling that drawerboxes animated perfectly, where as the frontals fail to close with the same animation settings from Maya to Unity.

Regards

M D Calver.

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 Paulius-Liekis · Jul 11, 2011 at 01:16 PM 0
Share

It's very hard to say what is wrong from this description. You basically should try experimenting a bit, make sure your settings are correct. $$anonymous$$aybe you could post a couple sample files that illustrate the problem.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Kacer · Jul 11, 2011 at 01:21 PM

What is your question exactly? :)

Anyway, last time i checked Unity cant export vertex animation, so if you've animated your door in maya by rotating it around its pivot axis, then it wont be imported into Unity.

If you absolutely want to import the animation, you could try to set it up with bones instead.

An alternative could be that you scripted the opening of the door in Unity, by making the door a child of a gameobject, position the gameobject so its where the hinges should be, then script the gameobject to rotate, making it simulate a door opening.

Regards

Kacer

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

animate only when clicked 3 Answers

Unity Animation Problem 0 Answers

Triggering door animation with collider 2 Answers

Trigger door animation with external trigger 1 Answer


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