You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > numVerts

19.7.2 numVerts

nv = physics.PolyShape:numVerts()

Parameter

Type

Description

self

in physics.PolyShape

The input PolyShape

nv

out number

The number of vertices in the PolyShape

Returns the number of vertices in the table of polygon vertices.

Introduced in platform.apiLevel = '2.0'