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 /
This question was closed Jul 08, 2014 at 06:49 PM by pheash for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by pheash · Jul 17, 2012 at 10:07 PM · animationfbxcurves

How to control animated bones of an FBX file?

Hi, I was wondering what the proper workflow is for accessing bones of an animated hierarchy saved as an fbx.

I have an animated tower, every object has a key on every frame. In code I aim the towers gun at a target. this however does not work properly since the animation that is played on the tower overrides what i do in code. My part solution was to add an extra controller object in unity into the hierarchy which has the gun as a child. now i have controll back over the orientation of the gun, however the animation is "lost" or disconnected.

The animation window even tells me that the curves are "Leftover" however i dont know how to relink them to the apropriet bone.

Is there a way to avoid said problem? Is it possible to export an fbx that only has certain curves of an object animated while the others are blank, or do i need to delete some curves, is that even possible with a read only fbx?

The animation of the tower is split on import, if that changes anything.

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

  • Sort: 
avatar image
2
Best Answer

Answer by Paulius-Liekis · Jul 18, 2012 at 09:49 AM

The usual approach:

  • Play animation on the tower just as any animation

  • Make adjustments to the orientation of the turret in LateUpdate (not in Update), because it happens after sampling animation and this way you can override transform values.

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 pheash · Jul 19, 2012 at 08:42 PM 0
Share

sorry for the late reply and thanks for the reply. this sounds like the solution i was looking for!

avatar image
1

Answer by Bunny83 · Jul 18, 2012 at 10:29 AM

The general advise is, do not animate the root bone. If you do this, you have to make the "whole" model a child of another object. Don't break up the bone hierarchy. Another way is to set a mixing tranform to effectively ignoring some curves. Another way is to remove the animation curves in your modelling application, or create duplicates of the animations in Unity (CTRL + D), replace the animations in the animation component and edit the animation in Unity.

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 pheash · Jul 19, 2012 at 09:06 PM 0
Share

hey, sorry for the late reply, this sounds a bit over complicated for my scene. I will look into mixing transform though it sounds interesting. thanks

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I prevent Unity overshooting graph curves? 0 Answers

making and exporting animations involving multiple separate objects from to unity 0 Answers

Problems with an animation 0 Answers

FBX -> 3dsMax problem 0 Answers

Importing Quill animation FBX file in Unity 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