AnimationMixer class
The AnimationMixer is a player for animations on a particular object in the scene. When multiple objects in the scene are animated independently, one AnimationMixer may be used for each object.
For an overview of the different elements of the three.js animation system see the "Animation System" article in the "Next Steps" section of the manual.
- Mixed-in types
-
- EventDispatcher
Constructors
- AnimationMixer.new(Object3D root)
-
rootObject
- the object whose animations shall be played by this mixer.
Properties
-
actionsByClip
↔ Map<
String, dynamic> -
getter/setter pair
-
bindings
↔ List<
PropertyMixer> -
getter/setter pair
-
bindingsByRootAndName
↔ Map<
String, Map< String, PropertyMixer> > -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- root ↔ Object3D
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stats
↔ Map<
String, dynamic> ? -
getter/setter pair
- time ↔ num
-
getter/setter pair
- timeScale ↔ num
-
getter/setter pair
Methods
-
activateAction(
AnimationAction action) → void -
addEventListener(
String type, Function listener) → void -
type
- The type of event to listen to.inherited -
clearListeners(
) → void -
Remove all Listeners.
inherited
-
clipAction(
AnimationClip? clip, [Object3D? optionalRoot, int? blendMode]) → AnimationAction? - Returns an AnimationAction for the passed clip, optionally using a root object different from the mixer's default root. The first parameter can be either an AnimationClip object or the name of an AnimationClip.
-
deactivateAction(
AnimationAction action) → void -
dispatchEvent(
Event event) → void -
event
- The event that gets fired.inherited -
dispose(
) → void -
inherited
-
existingAction(
AnimationClip clip, dynamic optionalRoot) → AnimationAction? - Returns an existing AnimationAction for the passed clip, optionally using a root object different from the mixer's default root.
-
getRoot(
) → Object3D - Returns this mixer's root object.
-
hasEventListener(
String type, Function listener) → bool -
type
- The type of event to listen to.inherited -
isActiveAction(
AnimationAction action) → bool -
lendControlInterpolant(
) → Interpolant -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, Function listener) → void -
type - The type of the listener that gets removed.
inherited
-
setTime(
dynamic timeInSeconds) → AnimationMixer -
stopAllAction(
) → AnimationMixer - Deactivates all previously scheduled actions on this mixer.
-
takeBackControlInterpolant(
Interpolant interpolant) → void -
toString(
) → String -
A string representation of this object.
inherited
-
uncacheAction(
AnimationClip clip, [dynamic optionalRoot]) → void - Deallocates all memory resources for an action. Before using this method make sure to call AnimationAction.stop to deactivate the action.
-
uncacheClip(
AnimationClip clip) → void - Deallocates all memory resources for a clip. Before using this method make sure to call AnimationAction.stop for all related actions.
-
uncacheRoot(
dynamic root) → void - Deallocates all memory resources for a root object. Before using this method make sure to call AnimationAction.stop for all related actions or alternatively stopAllAction when the mixer operates on a single root.
-
update(
num deltaTime) → AnimationMixer - Advance the time and update apply the animation
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited