Jump to content

Need help animating!


Recommended Posts

Hi, I am learning how to build parts at the moment, and I have a solar panel that is integrated into another part. The problem is I need to pack it by folding it up so that when the doors close the folded panel goes inside the fuselage part. I have the animation to spin the panels but not to fold them and I can not find any tutorials on how to fold up my parts and such like that in unity. Does anyone have a tutorial or know of an animation tutorial? Or have a solar pannel animation file for unity i could look at?

Link to comment
Share on other sites

The spinning of a solar panel to face the sun is controlled by raycast and transforms, you do not need to animate that part of a solar panel , just make an animation for the unfolding. THIS threads information is still relevant and works, well did a couple of weeks ago when i made and emergency panel thing

Link to comment
Share on other sites

Parent and children objects Pivot points.

Think of your panels as the children, the bars that hold the panels as the parent. If you use a simple cylinder for the bars you can use it's point of origin to rotate evenly, and just ensure your parts are all added in the hierarchy under one another. If you move the top bar, anything under it is affected, so to fold out a solar panel, you would just have a range of cylinders rotating with children objects, being the solar panels. Move the top bar, they all move, and then as you go you rotate each parent one at a time and fold the panel up.

Link to comment
Share on other sites

Thanks... I got the animation working in Unity, but now the part wont show up in the game... I made a cfg, and thought maybe it was the code for the panels but that still didn't fix the problem, I think the problem is in something I did in unity I am not sure what I broke... if someone wants to have a stab at showing me my noob mistake I would speak kindly of them.

assets2x1solar.zip this is the assets folder for it.... I changed the hierarchy I am not sure if it will be saved in the file the way i have it set.... when I preview the anim directly from the anim file its a little messed up but it worked correctly in the render. I would like to know what I fuggered so I can learn so if someone can tell me or show me that would be AMAZING! thanks guys.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...