slembcke / Chipmunk2D

A fast and lightweight 2D game physics library.
http://chipmunk2d.net
MIT License
2.22k stars 352 forks source link

[Documentation] cpPolyShapeGetCount typo in docs #220

Open mcclure opened 2 years ago

mcclure commented 2 years ago

The docs list a function

int cpPolyShapeGetNumVerts(cpShape *shape) ...

Getters for poly shape properties. Passing a non-poly shape or an index that does not exist will throw an assertion.

However, the function in cpPolyShape.h:

/// Get the number of verts in a polygon shape.
CP_EXPORT int cpPolyShapeGetCount(const cpShape *shape);

The name is wrong in the docs.