Class ModelTransformSampler
java.lang.Object
zombie.util.PooledObject
zombie.core.skinnedmodel.animation.ModelTransformSampler
- All Implemented Interfaces:
AnimTrackSampler
,IPooledObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelTransformSampler
alloc
(AnimationPlayer animationPlayer, AnimationTrack animTrack) void
getBoneMatrix
(int int0, org.lwjgl.util.vector.Matrix4f matrix4f) float
int
float
boolean
isLooped()
void
moveToTime
(float time) void
Release any Pooled objects.Methods inherited from class zombie.util.PooledObject
getPoolReference, isFree, release, setFree, setPool
-
Constructor Details
-
ModelTransformSampler
public ModelTransformSampler()
-
-
Method Details
-
alloc
public static ModelTransformSampler alloc(AnimationPlayer animationPlayer, AnimationTrack animTrack) -
onReleased
public void onReleased()Release any Pooled objects.- Specified by:
onReleased
in interfaceIPooledObject
-
getTotalTime
public float getTotalTime()- Specified by:
getTotalTime
in interfaceAnimTrackSampler
-
isLooped
public boolean isLooped()- Specified by:
isLooped
in interfaceAnimTrackSampler
-
moveToTime
public void moveToTime(float time) - Specified by:
moveToTime
in interfaceAnimTrackSampler
-
getCurrentTime
public float getCurrentTime()- Specified by:
getCurrentTime
in interfaceAnimTrackSampler
-
getBoneMatrix
public void getBoneMatrix(int int0, org.lwjgl.util.vector.Matrix4f matrix4f) - Specified by:
getBoneMatrix
in interfaceAnimTrackSampler
-
getNumBones
public int getNumBones()- Specified by:
getNumBones
in interfaceAnimTrackSampler
-