public class Animation
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
float |
end
Time in seconds of the last frame of this
Animation |
float |
loop
Time in seconds of the loop point.
|
float |
loopDuration
Duration in seconds of the loop between the end and loop time.
|
java.util.HashSet<java.lang.String> |
morphMotions
References to
MorphMotion used to animate the MorphTargets. |
java.lang.String |
name
This
Animation name |
java.lang.String |
skeletonMotion
Name of the
JointMotion used for animating the Skeleton. |
float |
speed
Speed factor of this
Animation. |
float |
start
Time in seconds of the first frame of this
Animation |
| Constructor and Description |
|---|
Animation() |
| Modifier and Type | Method and Description |
|---|---|
Animation |
clone() |
float |
getLength() |
float |
getLengthInLoop() |
float |
getLoopTime() |
float |
getProgression(float time) |
float |
getTime(float progression) |
boolean |
isLoop() |
static Animation |
read(IByteInputStream in,
java.lang.String[] strings) |
java.lang.String |
toString() |
void |
write(IByteOutputStream out,
Array<java.lang.String> strings) |
public java.lang.String name
Animation namepublic float start
Animationpublic float end
Animationpublic float loop
loopDurationpublic float loopDuration
loop is enabled, the animation goes by default instantly
to the loop point. This can be changed by specifying the a duration
time to loopDuration.public float speed
Animation.public java.lang.String skeletonMotion
public final java.util.HashSet<java.lang.String> morphMotions
MorphMotion used to animate the MorphTargets.public static final Animation read(IByteInputStream in, java.lang.String[] strings) throws java.io.IOException
java.io.IOExceptionpublic final void write(IByteOutputStream out, Array<java.lang.String> strings) throws java.io.IOException
java.io.IOExceptionpublic final java.lang.String toString()
toString in class java.lang.Objectpublic final Animation clone()
clone in class java.lang.Objectpublic final float getLength()
public final float getLengthInLoop()
Animation when looping,end - getLoopTime() + loopDurationpublic final float getProgression(float time)
time - the time in secondspublic final float getTime(float progression)
progression - value in range [0;1]public final boolean isLoop()
Animation is loopingpublic final float getLoopTime()
isLoop() return trueBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com