Package com.jme3.animation
Class AnimChannel
java.lang.Object
com.jme3.animation.AnimChannel
Deprecated.
AnimChannel
provides controls, such as play, pause,
fast-forward, etcetera, for an animation. The animation
channel may influence the entire model or specific bones of the model's
skeleton. A single model may have multiple animation channels influencing
various parts of its body. For example, a character model may have an
animation channel for its feet, and another for its torso, and
the animations for each channel are controlled independently.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Add all the bones of the model's skeleton to be influenced by this animation channel.void
Deprecated.Add a single bone to be influenced by this animation channel.void
Deprecated.Add a single bone to be influenced by this animation channel.void
addFromRootBone
(Bone bone) Deprecated.Add bones to be influenced by this animation channel, starting from the given bone and going toward its children.void
addFromRootBone
(String name) Deprecated.Add bones to be influenced by this animation channel, starting from the given named bone and going toward its children.void
addToRootBone
(Bone bone) Deprecated.Add bones to be influenced by this animation channel starting from the given bone and going toward the root bone.void
addToRootBone
(String name) Deprecated.Add bones to be influenced by this animation channel starting from the given bone name and going toward the root bone.Deprecated.float
Deprecated.Deprecated.Returns the parent control of this AnimChannel.Deprecated.float
getSpeed()
Deprecated.float
getTime()
Deprecated.void
reset
(boolean rewind) Deprecated.void
Deprecated.Set the current animation that is played by this AnimChannel.void
Deprecated.Set the current animation that is played by this AnimChannel.void
setLoopMode
(LoopMode loopMode) Deprecated.void
setSpeed
(float speed) Deprecated.void
setTime
(float time) Deprecated.
-
Constructor Details
-
AnimChannel
public AnimChannel()Deprecated. -
AnimChannel
Deprecated.
-
-
Method Details
-
getControl
Deprecated.Returns the parent control of this AnimChannel.- Returns:
- the parent control of this AnimChannel.
- See Also:
-
getAnimationName
Deprecated.- Returns:
- The name of the currently playing animation, or null if none is assigned.
- See Also:
-
getLoopMode
Deprecated.- Returns:
- The loop mode currently set for the animation. The loop mode determines what will happen to the animation once it finishes playing. For more information, see the LoopMode enum class.
- See Also:
-
setLoopMode
Deprecated.- Parameters:
loopMode
- Set the loop mode for the channel. The loop mode determines what will happen to the animation once it finishes playing. For more information, see the LoopMode enum class.- See Also:
-
getSpeed
public float getSpeed()Deprecated.- Returns:
- The speed that is assigned to the animation channel. The speed is a scale value starting from 0.0, at 1.0 the animation will play at its default speed.
- See Also:
-
setSpeed
public void setSpeed(float speed) Deprecated.- Parameters:
speed
- Set the speed of the animation channel. The speed is a scale value starting from 0.0, at 1.0 the animation will play at its default speed.
-
getTime
public float getTime()Deprecated.- Returns:
- The time of the currently playing animation. The time starts at 0 and continues on until getAnimMaxTime().
- See Also:
-
setTime
public void setTime(float time) Deprecated.- Parameters:
time
- Set the time of the currently playing animation, the time is clamped from 0 togetAnimMaxTime()
.
-
getAnimMaxTime
public float getAnimMaxTime()Deprecated.- Returns:
- The length of the currently playing animation, or zero if no animation is playing.
- See Also:
-
setAnim
Deprecated.Set the current animation that is played by this AnimChannel.This resets the time to zero, and optionally blends the animation over
blendTime
seconds with the currently playing animation. Notice that this method will reset the control's speed to 1.0.- Parameters:
name
- The name of the animation to playblendTime
- The blend time over which to blend the new animation with the old one. If zero, then no blending will occur and the new animation will be applied instantly.
-
setAnim
Deprecated.Set the current animation that is played by this AnimChannel.See
setAnim(java.lang.String, float)
. The blendTime argument by default is 150 milliseconds.- Parameters:
name
- The name of the animation to play
-
addAllBones
public void addAllBones()Deprecated.Add all the bones of the model's skeleton to be influenced by this animation channel. -
addBone
Deprecated.Add a single bone to be influenced by this animation channel.- Parameters:
name
- the name of the Bone to be influenced
-
addBone
Deprecated.Add a single bone to be influenced by this animation channel.- Parameters:
bone
- the Bone to be influenced
-
addToRootBone
Deprecated.Add bones to be influenced by this animation channel starting from the given bone name and going toward the root bone.- Parameters:
name
- the name of the Bone to use as a starting point
-
addToRootBone
Deprecated.Add bones to be influenced by this animation channel starting from the given bone and going toward the root bone.- Parameters:
bone
- the Bone to use as a starting point
-
addFromRootBone
Deprecated.Add bones to be influenced by this animation channel, starting from the given named bone and going toward its children.- Parameters:
name
- the name of the Bone to use as a starting point
-
addFromRootBone
Deprecated.Add bones to be influenced by this animation channel, starting from the given bone and going toward its children.- Parameters:
bone
- the Bone to use as a starting point
-
reset
public void reset(boolean rewind) Deprecated.
-