-
Notifications
You must be signed in to change notification settings - Fork 0
/
Animation.js
37 lines (31 loc) · 869 Bytes
/
Animation.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Animation
* @param gl {WebGLRenderingContext}
* @constructor
*/
class Animation {
constructor(scene, id, animTime, controlPoints) {
this.scene = scene;
this.id = id;
this.animTime = animTime;
this.controlPoints = controlPoints;
this.animationEnd = false;
this.partialTime = 0;
this.segmentTimes = [];
};
/**
* Updates the animation
*/
update(node, currTime) { //se não existir override é este que é chamado!
//ENUNCIADO actualizar o seu estado em funcao do tempo
// var caller = Animation.instanceof;
//caller.update(node, currTime);
// this.apply(nop, tim);
};
/**
* Applies the animation
*/
apply(node) {
// ENUNCIADO : aplicar as transformacoes sobre a matriz de transformacoes da cena aqui
};
}