forked from playcanvas/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
30 lines (26 loc) · 709 Bytes
/
Copy pathdata.js
File metadata and controls
30 lines (26 loc) · 709 Bytes
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
class AnimationComponentData {
constructor() {
// Serialized
this.assets = [];
this.speed = 1.0;
this.loop = true;
this.activate = true;
this.enabled = true;
// Non-serialized
this.animations = { };
this.model = null;
this.prevAnim = null;
this.currAnim = null;
this.blending = false;
this.blend = 0;
this.blendSpeed = 0;
this.playing = false;
// json animation skeleton
this.skeleton = null;
this.fromSkel = null;
this.toSkel = null;
// glb animation controller
this.animEvaluator = null;
}
}
export { AnimationComponentData };