Class AnimationPlayer
java.lang.Object
zombie.core.skinnedmodel.animation.AnimationPlayer
public class AnimationPlayer
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description float
angle
float
angleStep
org.lwjgl.util.vector.Matrix4f[]
boneTransforms
static java.util.Stack
freeTracks
org.lwjgl.util.vector.Matrix4f
propTransforms
SkinningData
skinningDataValue
org.lwjgl.util.vector.Matrix4f[]
skinTransforms
float
targetAngle
java.util.ArrayList
Tracks
org.lwjgl.util.vector.Matrix4f[]
worldTransforms
-
Constructor Summary
Constructors Constructor Description AnimationPlayer(SkinningData skinningData)
-
Method Summary
Modifier and Type Method Description AnimationTrack
getAnimTrack(java.lang.String name)
org.lwjgl.util.vector.Matrix4f
GetPropBoneMatrix()
Vector3f
getWorldPositionOf(int i)
void
ResetToFrameOne()
static org.lwjgl.util.vector.Quaternion
slerp(org.lwjgl.util.vector.Quaternion out, org.lwjgl.util.vector.Quaternion a, org.lwjgl.util.vector.Quaternion b, float t, boolean allowFlip)
static org.lwjgl.util.vector.Vector3f
slerp(org.lwjgl.util.vector.Vector3f out, org.lwjgl.util.vector.Vector3f a, org.lwjgl.util.vector.Vector3f b, float t, boolean allowFlip)
AnimationTrack
StartClip(AnimationClip clip, boolean loop, boolean finished, boolean StopOnFrameOneAfterLoop)
void
Update(float time, boolean relativeToCurrentTime, org.lwjgl.util.vector.Matrix4f rootTransform)
void
UpdateBoneTransforms(float time, boolean relativeToCurrentTime)
void
UpdateSkinTransforms()
void
UpdateWorldTransforms(org.lwjgl.util.vector.Matrix4f rootTransform)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
propTransforms
public org.lwjgl.util.vector.Matrix4f propTransforms -
boneTransforms
public org.lwjgl.util.vector.Matrix4f[] boneTransforms -
worldTransforms
public org.lwjgl.util.vector.Matrix4f[] worldTransforms -
skinTransforms
public org.lwjgl.util.vector.Matrix4f[] skinTransforms -
skinningDataValue
-
angle
public float angle -
targetAngle
public float targetAngle -
angleStep
public float angleStep -
freeTracks
public static java.util.Stack freeTracks -
Tracks
public java.util.ArrayList Tracks
-
-
Constructor Details
-
AnimationPlayer
-
-
Method Details
-
GetPropBoneMatrix
public org.lwjgl.util.vector.Matrix4f GetPropBoneMatrix() -
StartClip
public AnimationTrack StartClip(AnimationClip clip, boolean loop, boolean finished, boolean StopOnFrameOneAfterLoop) -
Update
public void Update(float time, boolean relativeToCurrentTime, org.lwjgl.util.vector.Matrix4f rootTransform) -
UpdateBoneTransforms
public void UpdateBoneTransforms(float time, boolean relativeToCurrentTime) -
slerp
public static final org.lwjgl.util.vector.Vector3f slerp(org.lwjgl.util.vector.Vector3f out, org.lwjgl.util.vector.Vector3f a, org.lwjgl.util.vector.Vector3f b, float t, boolean allowFlip) -
slerp
public static final org.lwjgl.util.vector.Quaternion slerp(org.lwjgl.util.vector.Quaternion out, org.lwjgl.util.vector.Quaternion a, org.lwjgl.util.vector.Quaternion b, float t, boolean allowFlip) -
UpdateWorldTransforms
public void UpdateWorldTransforms(org.lwjgl.util.vector.Matrix4f rootTransform) -
UpdateSkinTransforms
public void UpdateSkinTransforms() -
getWorldPositionOf
-
ResetToFrameOne
public void ResetToFrameOne() -
getAnimTrack
-