Class AnimationTrack
java.lang.Object
zombie.util.PooledObject
zombie.core.skinnedmodel.animation.AnimationTrack
- All Implemented Interfaces:
IPooledObject
public final class AnimationTrack extends PooledObject
-
Field Summary
Fields Modifier and Type Field Description float
BlendDelta
float
blendFieldWeight
protected AnimationClip
CurrentClip
float
earlyBlendOutTime
boolean
IsPlaying
java.lang.String
name
int
priority
boolean
reverse
float
SpeedDelta
boolean
SyncTrackingEnabled
boolean
triggerOnNonLoopedAnimFadeOutEvent
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnimationTrack()
-
Method Summary
Modifier and Type Method Description void
addListener(IAnimListener iAnimListener)
void
advance(float float1)
void
advanceFraction(float float1)
static AnimationTrack
alloc()
static AnimationTrack
createClone(AnimationTrack animationTrack, java.util.function.Supplier supplier)
void
get(int int1, org.lwjgl.util.vector.Vector3f vector3f, org.lwjgl.util.vector.Quaternion quaternion, org.lwjgl.util.vector.Vector3f vector3f2)
float
getBoneWeight(int int1)
float
getClampedBlendDelta()
AnimationClip
getClip()
org.lwjgl.util.vector.Vector3f
getCurrentDeferredCounterPosition(org.lwjgl.util.vector.Vector3f vector3f)
org.lwjgl.util.vector.Vector3f
getCurrentDeferredPosition(org.lwjgl.util.vector.Vector3f vector3f)
float
getCurrentDeferredRotation()
float
getCurrentTime()
float
getCurrentTimeFraction()
float
getCurrentTimeValue()
float
getDeferredBoneWeight()
Vector2
getDeferredMovement(org.lwjgl.util.vector.Vector3f vector3f, Vector2 vector2)
int
getDeferredMovementBoneIdx()
Vector2
getDeferredMovementDiff(Vector2 vector2)
float
getDeferredRotationDiff()
float
getDeferredTwistRotation(org.lwjgl.util.vector.Quaternion quaternion)
float
getDuration()
int
getLayerIdx()
float
getPreviousTime()
float
getPreviousTimeValue()
int
getPriority()
boolean
getUseDeferredRotation()
boolean
hasBoneMask()
boolean
hasClip()
void
initBoneWeights(SkinningData skinningData)
protected void
initWeightBinding(SkinningData skinningData, AnimBoneWeight animBoneWeight)
protected void
invokeOnAnimStartedEvent()
protected void
invokeOnLoopedAnimEvent()
protected void
invokeOnNonLoopedAnimFadeOutEvent()
protected void
invokeOnNonLoopedAnimFinishedEvent()
boolean
isFinished()
boolean
isLooping()
void
moveCurrentTimeValueTo(float float1)
void
moveCurrentTimeValueToFraction(float float1)
void
onReleased()
void
removeListener(IAnimListener iAnimListener)
AnimationTrack
reset()
void
rewind(float float1)
void
scaledAdvance(float float1)
void
scaledRewind(float float1)
void
setBoneWeights(java.util.List list)
void
setCurrentTimeValue(float float1)
void
setDeferredBone(SkinningBone skinningBone, BoneAxis boneAxis)
void
setLayerIdx(int int1)
void
setPreviousTimeValue(float float1)
void
setUseDeferredRotation(boolean boolean1)
void
startClip(AnimationClip animationClip, boolean boolean1)
protected void
TickCurrentTime(float float1)
void
Update(float float1)
void
UpdateKeyframes(float float1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
IsPlaying
public boolean IsPlaying -
CurrentClip
-
priority
public int priority -
SyncTrackingEnabled
public boolean SyncTrackingEnabled -
reverse
public boolean reverse -
SpeedDelta
public float SpeedDelta -
BlendDelta
public float BlendDelta -
blendFieldWeight
public float blendFieldWeight -
name
public java.lang.String name -
earlyBlendOutTime
public float earlyBlendOutTime -
triggerOnNonLoopedAnimFadeOutEvent
public boolean triggerOnNonLoopedAnimFadeOutEvent
-
-
Constructor Details
-
AnimationTrack
protected AnimationTrack()
-
-
Method Details
-
alloc
-
get
public void get(int int1, org.lwjgl.util.vector.Vector3f vector3f, org.lwjgl.util.vector.Quaternion quaternion, org.lwjgl.util.vector.Vector3f vector3f2) -
removeListener
-
Update
public void Update(float float1) -
UpdateKeyframes
public void UpdateKeyframes(float float1) -
getDeferredTwistRotation
public float getDeferredTwistRotation(org.lwjgl.util.vector.Quaternion quaternion) -
getDeferredMovement
-
getCurrentDeferredCounterPosition
public org.lwjgl.util.vector.Vector3f getCurrentDeferredCounterPosition(org.lwjgl.util.vector.Vector3f vector3f) -
getCurrentDeferredRotation
public float getCurrentDeferredRotation() -
getCurrentDeferredPosition
public org.lwjgl.util.vector.Vector3f getCurrentDeferredPosition(org.lwjgl.util.vector.Vector3f vector3f) -
getDeferredMovementBoneIdx
public int getDeferredMovementBoneIdx() -
getCurrentTime
public float getCurrentTime() -
getPreviousTime
public float getPreviousTime() -
TickCurrentTime
protected void TickCurrentTime(float float1) -
getDuration
public float getDuration() -
invokeOnAnimStartedEvent
protected void invokeOnAnimStartedEvent() -
invokeOnLoopedAnimEvent
protected void invokeOnLoopedAnimEvent() -
invokeOnNonLoopedAnimFadeOutEvent
protected void invokeOnNonLoopedAnimFadeOutEvent() -
invokeOnNonLoopedAnimFinishedEvent
protected void invokeOnNonLoopedAnimFinishedEvent() -
onReleased
public void onReleased() -
getDeferredMovementDiff
-
getDeferredRotationDiff
public float getDeferredRotationDiff() -
getClampedBlendDelta
public float getClampedBlendDelta() -
addListener
-
startClip
-
reset
-
setBoneWeights
public void setBoneWeights(java.util.List list) -
initBoneWeights
-
initWeightBinding
-
getBoneWeight
public float getBoneWeight(int int1) -
getDeferredBoneWeight
public float getDeferredBoneWeight() -
setLayerIdx
public void setLayerIdx(int int1) -
getLayerIdx
public int getLayerIdx() -
hasBoneMask
public boolean hasBoneMask() -
isLooping
public boolean isLooping() -
setDeferredBone
-
setUseDeferredRotation
public void setUseDeferredRotation(boolean boolean1) -
getUseDeferredRotation
public boolean getUseDeferredRotation() -
isFinished
public boolean isFinished() -
getCurrentTimeValue
public float getCurrentTimeValue() -
setCurrentTimeValue
public void setCurrentTimeValue(float float1) -
getPreviousTimeValue
public float getPreviousTimeValue() -
setPreviousTimeValue
public void setPreviousTimeValue(float float1) -
rewind
public void rewind(float float1) -
scaledRewind
public void scaledRewind(float float1) -
scaledAdvance
public void scaledAdvance(float float1) -
advance
public void advance(float float1) -
advanceFraction
public void advanceFraction(float float1) -
moveCurrentTimeValueTo
public void moveCurrentTimeValueTo(float float1) -
moveCurrentTimeValueToFraction
public void moveCurrentTimeValueToFraction(float float1) -
getCurrentTimeFraction
public float getCurrentTimeFraction() -
hasClip
public boolean hasClip() -
getClip
-
getPriority
public int getPriority() -
createClone
public static AnimationTrack createClone(AnimationTrack animationTrack, java.util.function.Supplier supplier)
-