|
@@ -50865,8 +50865,33 @@ var BABYLON;
|
|
|
return this;
|
|
|
};
|
|
|
/**
|
|
|
+ * Set animation weight for all animatables
|
|
|
+ * @param weight defines the weight to use
|
|
|
+ * @return the animationGroup
|
|
|
+ * @see http://doc.babylonjs.com/babylon101/animations#animation-weights
|
|
|
+ */
|
|
|
+ AnimationGroup.prototype.setWeightForAllAnimatables = function (weight) {
|
|
|
+ for (var index = 0; index < this._animatables.length; index++) {
|
|
|
+ var animatable = this._animatables[index];
|
|
|
+ animatable.weight = weight;
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ };
|
|
|
+ /**
|
|
|
+ * Synchronize and normalize all animatables with a source animatable
|
|
|
+ * @param root defines the root animatable to synchronize with
|
|
|
+ * @return the animationGroup
|
|
|
+ * @see http://doc.babylonjs.com/babylon101/animations#animation-weights
|
|
|
+ */
|
|
|
+ AnimationGroup.prototype.syncAllAnimationsWith = function (root) {
|
|
|
+ for (var index = 0; index < this._animatables.length; index++) {
|
|
|
+ var animatable = this._animatables[index];
|
|
|
+ animatable.syncWith(root);
|
|
|
+ }
|
|
|
+ return this;
|
|
|
+ };
|
|
|
+ /**
|
|
|
* Goes to a specific frame in this animation group
|
|
|
- *
|
|
|
* @param frame the frame number to go to
|
|
|
* @return the animationGroup
|
|
|
*/
|