Category: 2D Overlay
Syntax:
b2dMeshCopyVertsZ:Void(handle:Int, out:Double[])
Void
Copies the z coordinate of every vertex of the mesh's current pose into an
array, in one call: out[i] becomes vertex i's z. The
X and Y coordinates come from b2dMeshCopyVertsX
and its partner.
The current pose is frame 0 until b2dMeshAnimate is called, and
the blended pose after. Call b2dMeshAnimate first, then all three copies, each frame.
The array must be big enough. The runtime writes b2dMeshVertCount values without being able
to check the array's size, so size it for the largest mesh it will hold. An unknown handle writes
nothing.
View detailed documentation online
Global mvx:Double[8192] Global mvy:Double[8192] Global mvz:Double[8192] b2dMeshAnimate(mesh, frameA, frameB, t) b2dMeshCopyVertsX(mesh, mvx) b2dMeshCopyVertsY(mesh, mvy) b2dMeshCopyVertsZ(mesh, mvz)
See examples/Runtime/30 - Meshes.
BambooBasic © 2026 Michael Denathorn