b2dMeshFaceU

Category: 2D Overlay

Syntax:

b2dMeshFaceU:Double(handle:Int, face:Int, corner:Int)


Parameters

Returns

Texture u, 0..1



Summary

The horizontal texture coordinate at one corner of a face, 0 at the left of the texture and 1 at the right. Pass it as that corner's u to b2dDrawImageQuadDepthUV; the vertical partner is b2dMeshFaceV. An unknown handle, face or corner returns 0.

View detailed documentation online



Example
Print b2dMeshFaceU(mesh, 0, 0)

See examples/Runtime/30 - Meshes.


BambooBasic © 2026 Michael Denathorn