Skip to content

Function: sampleEntityAnimation() ​

ts
function sampleEntityAnimation(
   animation, 
   time, 
   loop?
): EntityAnimationPose;

Defined in: packages/minerender/src/entity/EntityAnimation.ts:78

Samples every bone and channel of an animation at time seconds.

Parameters ​

ParameterTypeDefault value
animationEntityAnimationundefined
timenumberundefined
loopbooleananimation.loop

Returns ​

EntityAnimationPose