|
@@ -2126,6 +2126,16 @@ export class Scene extends AbstractScene implements IAnimatable {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Will stop the animation of the given target
|
|
|
+ * @param target - the target
|
|
|
+ * @param animationName - the name of the animation to stop (all animations will be stopped if both this and targetMask are empty)
|
|
|
+ * @param targetMask - a function that determines if the animation should be stopped based on its target (all animations will be stopped if both this and animationName are empty)
|
|
|
+ */
|
|
|
+ public stopAnimation(target: any, animationName?: string, targetMask?: (target: any) => boolean): void {
|
|
|
+ // Do nothing as code will be provided by animation component
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Removes the given animation group from this scene.
|
|
|
* @param toRemove The animation group to remove
|
|
|
* @returns The index of the removed animation group
|