Class AnimationPlayer
java.lang.Object
zombie.util.PooledObject
zombie.core.skinnedmodel.animation.AnimationPlayer
- All Implemented Interfaces:
IPooledObject
public final class AnimationPlayer extends PooledObject
-
Field Summary
Fields Modifier and Type Field Description float
angleStepDelta
float
angleTwistDelta
boolean
bDoBlending
boolean
bUpdateBones
java.util.ArrayList
dismembered
org.lwjgl.util.vector.Matrix4f[]
modelTransforms
AnimationPlayer
parentPlayer
-
Method Summary
Modifier and Type Method Description void
addBoneReparent(java.lang.String string, java.lang.String string2)
static AnimationPlayer
alloc(Model model)
static float
calculateAnimPlayerAngle(Vector2 vector2)
void
discardRecording()
void
dismember(int int1)
void
DoAngles()
float
getAngle()
org.lwjgl.util.vector.Matrix4f
getBoneModelTransform(int int1, org.lwjgl.util.vector.Matrix4f matrix4f)
org.lwjgl.util.vector.Matrix4f
getBoneTransform(int int1, org.lwjgl.util.vector.Matrix4f matrix4f)
AnimationBoneBinding
getCounterRotationBone()
float
getDeferredAngleDelta()
void
getDeferredMovement(Vector2 vector2)
float
getDeferredRotationWeight()
float
getExcessTwistAngle()
float
getMaxTwistAngle()
Model
getModel()
AnimationMultiTrack
getMultiTrack()
org.lwjgl.util.vector.Matrix4f
GetPropBoneMatrix(int int1)
AnimationPlayerRecorder
getRecorder()
float
getRenderedAngle()
float
getShoulderTwistAngle()
int
getSkinningBoneIndex(java.lang.String string, int int1)
java.util.HashMap
getSkinningBoneIndices()
SkinningData
getSkinningData()
org.lwjgl.util.vector.Matrix4f[]
getSkinTransforms(SkinningData skinningData)
float
getTargetAngle()
float
getTargetTwistAngle()
float
getTwistAngle()
static org.lwjgl.util.vector.Matrix4f
getUnweightedBoneTransform(AnimationTrack animationTrack, int int1, org.lwjgl.util.vector.Matrix4f matrix4f)
org.lwjgl.util.vector.Matrix4f
getUnweightedModelTransform(AnimationTrack animationTrack, int int1, org.lwjgl.util.vector.Matrix4f matrix4f)
boolean
hasSkinningData()
boolean
isBoneReparented(int int1)
boolean
isBoneTransformsNeedFirstFrame()
boolean
isReady()
boolean
isRecording()
static float
lerpBlendWeight(float float1, float float2, float float3)
void
onReleased()
AnimationTrack
play(java.lang.String string, boolean boolean1)
static void
releaseTracks(java.util.List list)
void
reset()
void
resetBoneModelTransforms()
void
setAngle(float float1)
void
setAngleToTarget()
void
setCounterRotationBone(java.lang.String string)
void
SetDir(Vector2 vector2)
void
SetForceDir(Vector2 vector2)
void
setMaxTwistAngle(float float1)
void
setModel(Model model)
void
setRecorder(AnimationPlayerRecorder animationPlayerRecorder)
void
setRecording(boolean boolean1)
void
setSharedAnimRepo(SharedSkeleAnimationRepository sharedSkeleAnimationRepository)
void
setTargetAngle(float float1)
void
setTargetToAngle()
void
setTwistBones(java.lang.String[] stringArray)
void
Update()
void
Update(float float1)
void
UpdateDir(IsoGameCharacter gameCharacter)
void
updateMultiTrackBoneTransforms_DeferredMovementOnly()
void
UpdateSkinTransforms()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
modelTransforms
public org.lwjgl.util.vector.Matrix4f[] modelTransforms -
angleStepDelta
public float angleStepDelta -
angleTwistDelta
public float angleTwistDelta -
bDoBlending
public boolean bDoBlending -
bUpdateBones
public boolean bUpdateBones -
dismembered
public final java.util.ArrayList dismembered -
parentPlayer
-
-
Method Details
-
alloc
-
lerpBlendWeight
public static float lerpBlendWeight(float float1, float float2, float float3) -
setModel
-
getModel
-
isReady
public boolean isReady() -
hasSkinningData
public boolean hasSkinningData() -
addBoneReparent
public void addBoneReparent(java.lang.String string, java.lang.String string2) -
setTwistBones
public void setTwistBones(java.lang.String[] stringArray) -
setCounterRotationBone
public void setCounterRotationBone(java.lang.String string) -
getCounterRotationBone
-
reset
public void reset() -
onReleased
public void onReleased() -
getSkinningData
-
getSkinningBoneIndices
public java.util.HashMap getSkinningBoneIndices() -
getSkinningBoneIndex
public int getSkinningBoneIndex(java.lang.String string, int int1) -
GetPropBoneMatrix
public org.lwjgl.util.vector.Matrix4f GetPropBoneMatrix(int int1) -
releaseTracks
public static void releaseTracks(java.util.List list) -
play
-
Update
public void Update() -
Update
public void Update(float float1) -
calculateAnimPlayerAngle
-
SetDir
-
SetForceDir
-
UpdateDir
-
DoAngles
public void DoAngles() -
resetBoneModelTransforms
public void resetBoneModelTransforms() -
isBoneTransformsNeedFirstFrame
public boolean isBoneTransformsNeedFirstFrame() -
isBoneReparented
public boolean isBoneReparented(int int1) -
updateMultiTrackBoneTransforms_DeferredMovementOnly
public void updateMultiTrackBoneTransforms_DeferredMovementOnly() -
isRecording
public boolean isRecording() -
setRecorder
-
getRecorder
-
dismember
public void dismember(int int1) -
getBoneModelTransform
public org.lwjgl.util.vector.Matrix4f getBoneModelTransform(int int1, org.lwjgl.util.vector.Matrix4f matrix4f) -
getBoneTransform
public org.lwjgl.util.vector.Matrix4f getBoneTransform(int int1, org.lwjgl.util.vector.Matrix4f matrix4f) -
getUnweightedModelTransform
public org.lwjgl.util.vector.Matrix4f getUnweightedModelTransform(AnimationTrack animationTrack, int int1, org.lwjgl.util.vector.Matrix4f matrix4f) -
getUnweightedBoneTransform
public static org.lwjgl.util.vector.Matrix4f getUnweightedBoneTransform(AnimationTrack animationTrack, int int1, org.lwjgl.util.vector.Matrix4f matrix4f) -
UpdateSkinTransforms
public void UpdateSkinTransforms() -
getSkinTransforms
-
getDeferredMovement
-
getDeferredAngleDelta
public float getDeferredAngleDelta() -
getDeferredRotationWeight
public float getDeferredRotationWeight() -
getMultiTrack
-
setRecording
public void setRecording(boolean boolean1) -
discardRecording
public void discardRecording() -
getRenderedAngle
public float getRenderedAngle() -
getAngle
public float getAngle() -
setAngle
public void setAngle(float float1) -
setAngleToTarget
public void setAngleToTarget() -
setTargetToAngle
public void setTargetToAngle() -
getTargetAngle
public float getTargetAngle() -
setTargetAngle
public void setTargetAngle(float float1) -
getMaxTwistAngle
public float getMaxTwistAngle() -
setMaxTwistAngle
public void setMaxTwistAngle(float float1) -
getExcessTwistAngle
public float getExcessTwistAngle() -
getTwistAngle
public float getTwistAngle() -
getShoulderTwistAngle
public float getShoulderTwistAngle() -
getTargetTwistAngle
public float getTargetTwistAngle()
-