b2dMeshFaceU

U texture coordinate of a face's corner (0..3).

2D Overlay

Parameters & Returns

Parameters

handle Int
face Int
corner Int

Returns

Double

Quick Summary

U texture coordinate of a face's corner (0..3).

Technical Exegesis...

Returns the U (horizontal, 0..1) texture coordinate for corner (0..3) of the given face. Pair with b2dMeshFaceV and pass both to b2dDrawImageQuadDepthUV so the mesh's texture maps correctly. UVs are constant - cache them at load.

Example

Example.bam
Local u0:Double = b2dMeshFaceU(mesh, f, 0)
Local v0:Double = b2dMeshFaceV(mesh, f, 0)