mor.animation

Set of predefined function to shake our model during the reduction

Each function has to have 3 mandatory arguments:

argument

type

definition

objToAnimate

ObjToAnimate

the obj containing all the information/arguments about the animation

dt

seconde (in float)

Time step of the Sofa scene

factor

float

Argument given by the Animation class from STLIB. It indicate where we are in the animation sequence:

  • 0.0 ——> beginning of sequence.

  • 1.0 ——> end of sequence.

It is calculated as follow:

factor = (currentTime-startTime) / duration

the animation implemented in mor.animation will be added to the templated scene thanks to the splib.animation.animate


mor.animation.shakingAnimations

Implemented animation functions