- Home /
Making a spring animation import to Unity
I made an animation with a spring in Blender, using a Stretch constraint. After several hours of Google searches, I've learned that constraints aren't carried over into Unity, but I still haven't figured out how to make the spring animation carry over. I put keyframes on it, but it doesn't work. I assume it's because the Stretch constraint doesn't appear to affect the loc, rot, or scale.
Picture of the current animation halfway through (note that the spring is supposed to stretch along with the barrel.)
Answer by Lockstep · Sep 24, 2012 at 06:35 AM
You can only import actions into unity. Create an armature and rig your spring. Then create an armature action to deform the spring. There is a tutorial for a bouncing ball which might help you. http://cgcookie.com/blender/2010/09/29/creating-a-bouncing-ball-rig/
Ah, it looks like what I did was correct except that I added hooks ins$$anonymous$$d of parenting the spring directly to the bone. Removing those fixed it. Thanks!
Glad things worked our for you. Can you mark this question as answerd please?
Your answer
Follow this Question
Related Questions
Imported rigged suspension spring doesn't work properly 1 Answer
How to have one animator controller make multiple objects move? 0 Answers
Animation Rigging Package no Twist Chain Constraint 2 Answers
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers