applyCrossFade

actual fun applyCrossFade(previousIndex: Int, previousTime: Float, alpha: Float)

Cross-fade from a previous animation with alpha blending.

Blends transforms from two animations by:

  1. Stashing current transform hierarchy

  2. Applying the previous animation

  3. Lerping stashed transforms with current, then pushing results

Useful for smooth animation transitions. For skeletal meshes, typically call in order: applyAnimation() → applyCrossFade() → updateBoneMatrices().

Parameters

previousIndex

Zero-based index of the previous animation (alpha=0).

previousTime

Elapsed time for previous animation in seconds.

alpha

Blend factor 0, 1; 0 = previous, 1 = current.

expect fun applyCrossFade(previousIndex: Int, previousTime: Float, alpha: Float)

Cross-fade from a previous animation with alpha blending.

Blends transforms from two animations by:

  1. Stashing current transform hierarchy

  2. Applying the previous animation

  3. Lerping stashed transforms with current, then pushing results

Useful for smooth animation transitions. For skeletal meshes, typically call in order: applyAnimation() → applyCrossFade() → updateBoneMatrices().

Parameters

previousIndex

Zero-based index of the previous animation (alpha=0).

previousTime

Elapsed time for previous animation in seconds.

alpha

Blend factor 0, 1; 0 = previous, 1 = current.

actual fun applyCrossFade(previousIndex: Int, previousTime: Float, alpha: Float)

Cross-fade from a previous animation with alpha blending.

Blends transforms from two animations by:

  1. Stashing current transform hierarchy

  2. Applying the previous animation

  3. Lerping stashed transforms with current, then pushing results

Useful for smooth animation transitions. For skeletal meshes, typically call in order: applyAnimation() → applyCrossFade() → updateBoneMatrices().

Parameters

previousIndex

Zero-based index of the previous animation (alpha=0).

previousTime

Elapsed time for previous animation in seconds.

alpha

Blend factor 0, 1; 0 = previous, 1 = current.

actual fun applyCrossFade(previousIndex: Int, previousTime: Float, alpha: Float)

Cross-fade from a previous animation with alpha blending.

Blends transforms from two animations by:

  1. Stashing current transform hierarchy

  2. Applying the previous animation

  3. Lerping stashed transforms with current, then pushing results

Useful for smooth animation transitions. For skeletal meshes, typically call in order: applyAnimation() → applyCrossFade() → updateBoneMatrices().

Parameters

previousIndex

Zero-based index of the previous animation (alpha=0).

previousTime

Elapsed time for previous animation in seconds.

alpha

Blend factor 0, 1; 0 = previous, 1 = current.

actual fun applyCrossFade(previousIndex: Int, previousTime: Float, alpha: Float)

Cross-fade from a previous animation with alpha blending.

Blends transforms from two animations by:

  1. Stashing current transform hierarchy

  2. Applying the previous animation

  3. Lerping stashed transforms with current, then pushing results

Useful for smooth animation transitions. For skeletal meshes, typically call in order: applyAnimation() → applyCrossFade() → updateBoneMatrices().

Parameters

previousIndex

Zero-based index of the previous animation (alpha=0).

previousTime

Elapsed time for previous animation in seconds.

alpha

Blend factor 0, 1; 0 = previous, 1 = current.