updateSkeleton(skeletalMeshComp, frameA, frameB, framePos - frameId);
} else {
if ((int) framePos >= skeletalMeshComp.animation.getFrameCount()) {
MeshAnimationFrame frame = skeletalMeshComp.animation.getFrame(skeletalMeshComp.animation.getFrameCount() - 1);
updateSkeleton(skeletalMeshComp, frame, frame, 1.0f);
MeshAnimation animation = skeletalMeshComp.animation;
skeletalMeshComp.animationTime = 0;
skeletalMeshComp.animation = null;
entity.send(new AnimEndEvent(animation));
} else {
int frameId = (int) framePos;