Jump to content

Solar Panel Animation Question


Recommended Posts

Hi all:

I've been beating my head on creating a solar panel and finally get it to point towards the sun. The problem is that when I add the part to a ship in the VAB, it automatically deploys.

Here is my config file for the deployable solar panel:

MODULE

{

name = ModuleDeployableSolarPanel

animationName = Deploy

pivotName = sunPivot

IsBreakable = true

raycastTransformName = suncatcher

runOnce = true

resourceName = ElectricCharge

resourceName = ElectricCharge

chargeRate = 18

powerCurve

{

key = 206000000000 0 0 0

key = 13599840256 1 0 0

key = 68773560320 0.5 0 0

key = 0 10 0 0

}

}

To see what I mean:

RD979St.png

The game automatically plays the "Deploy" animation and leaves the panel fully open.

To see if there was an animation issue, I replaced ModuleDeployableSolarPanel with ModuleAnimationGeneric. When I do that, the panel starts folded as I expect. Here is what I mean:

mPr4jRH.png

You can see that it works just fine with ModuleAnimateGeneric.

Any ideas about what is going on? Why would ModuleDeployableSolarPanel play the animation and keep the panel fully open, while ModuleAnimateGeneric has no issues deploying or folding the part? Is there a setting in Unity that I'm missing?

Thanks for the help!

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...