# Animation

neuwirthe shared this question 4 years ago

Wi would like to create an animation like this one.

I can create animation with all object moving simultaneously.

But in this case, movement of the objects should be one by one, so the end of one movement should trigger the next one.

1

if you'd like some examples, look at the applets of Tim Brzezinski of or search for 'proof Pythagoras' in the materials platform.

Key thing in what Noel describes is that when a slider s has gots its interval from 0 to 3 you translate a first triangle with a vector u multiplied with a factor s within the range 0-1.

The second triangle you translate with (s - 1)*v within the range 1 -2 and finally the third you translate with (s-2) * w within the range 2-3.

I added a basic file. Look at the definitions in the algebra view of it.

chris

1

I found out myself ;-)

d0 is a slider from 0 to 4

d1=min(d0,1)

d2=max(0,min(d0-1,1)

d3=max(0,min(d0-2,1)

d4=max(0,min(d0-3,1)

Each one of these numbers runs from 0 to 1, so I can connect different shapes to the different values and I do not need if statements in the formulas for the shapes.