Jump to content

Some questions about animations and how KSP handles them


Recommended Posts

How do KSP do animations? With ModuleAnimateGeneric, the animation plays till the end then reverses. I can't get this behaviour, I only get it to play to the end then it jumps back to the beginning and plays from there. How can I do this in my own module?

Also parts like landing gears and legs: while in the editor, how can I get parts to jump directly to the end and beginning without playing the whole animation?

Cheers

Link to comment
Share on other sites

I have not done significant work with ModuleAnimateGeneric, but one of the Play() methods should accept a float between 0 and 1.

This is a percent on the animation so if you can set the module to 1, it should jump to the animation fully complete.

You should also be able to use a -1 somewhere to play the animation in reverse, but I can't remember the method name.

Hopefully someone who knows more will chime in shortly, but hopefully that at least narrows down where you need to look.

D.

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