b2dMeshAnimate

Category: 2D Overlay

Syntax:

b2dMeshAnimate:Void(handle:Int, frameA:Int, frameB:Int, t:Double)


Parameters

Returns

Void



Summary

Blends two morph frames (by t, 0..1) into the mesh's current pose.

View detailed documentation online



Example
Local fpos:Double = animTime * clipFPS
Local fi:Int      = ToInt(fpos) Mod clipFrames
Local t:Double    = fpos - ToDouble(ToInt(fpos))
b2dMeshAnimate(mesh, clipStart + fi, clipStart + ((fi + 1) Mod clipFrames), t)
b2dMeshCopyVertsX(mesh, mvx)   ; ...Y, ...Z, then project + draw

BambooBasic © 2026 Michael Denathorn