@urso/core 0.6.12 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -35,6 +35,17 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
|
|
|
35
35
|
this._baseObject.state.setAnimation(track, animationName, loopFlag);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* set up the mixes between animations
|
|
40
|
+
* @param {String} from - animation name
|
|
41
|
+
* @param {String} to - animation name
|
|
42
|
+
* @param {Number} duration - time in seconds
|
|
43
|
+
* @example setMix("walk", "jump", 0.2)
|
|
44
|
+
*/
|
|
45
|
+
setMix(from, to, duration) {
|
|
46
|
+
this._baseObject.state.setMix(from, to, duration);
|
|
47
|
+
}
|
|
48
|
+
|
|
38
49
|
/**
|
|
39
50
|
* set skin by name
|
|
40
51
|
* @param {String} skinName
|