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
28 lines (26 loc) · 766 Bytes
/
data.js
File metadata and controls
28 lines (26 loc) · 766 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
pc.extend(pc, function() {
var AnimationComponentData = function () {
// Serialized
this.assets = [ ];
this.speed = 1.0;
this.loop = true;
this.activate = true;
this.enabled = true;
// Non-serialized
this.animations = { };
this.skeleton = null;
this.model = null;
this.prevAnim = null;
this.currAnim = null;
this.fromSkel = null;
this.toSkel = null;
this.blending = false;
this.blendTime = 0;
this.blendTimeRemaining = 0;
this.playing = false;
};
AnimationComponentData = pc.inherits(AnimationComponentData, pc.ComponentData);
return {
AnimationComponentData: AnimationComponentData
};
}());