Parameters & Returns
Parameters
Returns
Quick Summary
Number of vertices in a loaded mesh.
Technical Exegesis...
Returns the vertex count of a mesh loaded with b2dLoadMesh (0 for an invalid handle). Size your position arrays to this and use it as the loop bound when pulling vertices with b2dMeshCopyVertsX/Y/Z.
Example
Local nv:Int = b2dMeshVertCount(mesh)