Today I started messing with shape defs in my game, but I'm getting errors I wasn't expecting... for instance when I make a polygon def and try to access its vertices, I get:
As I understand it, it should have vertex count... I am including Box2D.h, and have it linked to the library... does anyone know what I'm doing wrong?
Quote:
main.cpp:1095: error: ‘class std::vector<b2PolygonDef, std::allocator<b2PolygonDef> >’ has no member named ‘vertexCount’
As I understand it, it should have vertex count... I am including Box2D.h, and have it linked to the library... does anyone know what I'm doing wrong?