mor.animation.shakingAnimations.shakingSofia

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

Animation function made specifically to shake the leg of the 6-legged Robot.

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