MCPcopy Create free account
hub / github.com/melonjs/melonJS / isCurrentAnimation

Method isCurrentAnimation

packages/melonjs/src/level/gltf/GLTFModel.js:236–238  ·  view source on GitHub ↗

* return true if `name` is the currently playing animation. * @param {string} name - animation clip id * @returns {boolean}

(name)

Source from the content-addressed store, hash-verified

234 * @returns {boolean}
235 */
236 isCurrentAnimation(name) {
237 return this.current.name === name;
238 }
239
240 /**
241 * play the given animation clip. The second argument mirrors {@link Sprite}

Callers 1

setCurrentAnimationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected