* Select the active animation, identical to Sprite#setCurrentAnimation. * @param {string} name - animation id * @param {string|Function|object} [resetAnim] - loop / chain / completion behavior * @param {boolean} [preserve_dt=false] * @returns {Sprite3d} Reference to this object for m
(name, resetAnim, preserve_dt = false)
| 374 | * @returns {Sprite3d} Reference to this object for method chaining |
| 375 | */ |
| 376 | setCurrentAnimation(name, resetAnim, preserve_dt = false) { |
| 377 | this._frameAnim.setCurrentAnimation(name, resetAnim, preserve_dt); |
| 378 | return this; |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * Reverse the given (or current) animation in place (see {@link Sprite#reverseAnimation}). |
no outgoing calls