I'm trying to build JBox2D from source. I've checked out the latest code from the google code repo, but I'm getting a complier error in the serialization project: org.jbox2d.serialization.pb.PbDeserializer:250:
Any ideas how to fix this?
Thanks
Charlie
Quote:
case POLYGON:
PolygonShape p = new PolygonShape();
p.m_centroid.set(pbToVec(s.getCentroid()));
p.m_radius = s.getRadius();
p.m_vertexCount = s.getPointsCount(); // on this line because m_vertexCount doesn't exist.
for (int i = 0; i < p.m_vertexCount; i++) {
p.m_vertices[i].set(pbToVec(s.getPoints(i)));
p.m_normals[i].set(pbToVec(s.getNormals(i)));
}
shape = p;
break;
PolygonShape p = new PolygonShape();
p.m_centroid.set(pbToVec(s.getCentroid()));
p.m_radius = s.getRadius();
p.m_vertexCount = s.getPointsCount(); // on this line because m_vertexCount doesn't exist.
for (int i = 0; i < p.m_vertexCount; i++) {
p.m_vertices[i].set(pbToVec(s.getPoints(i)));
p.m_normals[i].set(pbToVec(s.getNormals(i)));
}
shape = p;
break;
Any ideas how to fix this?
Thanks
Charlie