Jump to content

Animation change


GameMonetize
 Share

Recommended Posts

Hey team!! as part of a change I need to do for animation, I introduced a new internal class named RuntimeAnimation.

The rationale behind this class is to make a bit clearer how animations work.

Animation (the class) is here to define an animation and its main goal is to store the keys and associated values (type, loop, easing)

When you start an animation on a mesh by using scene.beginAnimation(mesh), all the animations stored on mesh.animations will be used to create an Animatable.

Animatable is a store of a list of runtimeAnimation which will use the animation as source and which will be used to interpolate values.

 

Before my change Animation class was used for both storing the data and running the actual interpolations which was misleading.

 

I DON'T think that this will break any existing code. But If I'm wrong please report your findings here.

 

(let me ping @Wingnut as I know he was playing a lot with animations)

Link to comment
Share on other sites

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...