mor.animation.shakingAnimations.doingCircle

doingCircle(objToAnimate, dt, factor, **param)[source]

Animation function made specifically to apply deformation on the liver scene.

It’s an example of what can be a custom shaking animation. The animation consist on taking a position in entry, rotate it, and then update it in the component.

To use it the params parameters of ObjToAnimate which is a dictionnary will need 6 keys:

Keys:

argument

type

definition

dataToWorkOn

str

Name of the Sofa datafield we will work on here it will be position

incrPeriod

float

Period between each increment

incr

float

Value of each increment

rangeOfAction

float

Until which value the data will increase

angle

float

Initial angle value in radian

rodRadius

float

Radius Lenght of the circle