79193691

Date: 2024-11-15 19:21:54
Score: 1
Natty:
Report link

The answer is

  const auto position = cpBodyGetPosition(_props.body.get());
  const int count = cpPolyShapeGetCount(_props.shape.get());

  std::vector<cpVect> vertices(count);
  for (int i = 0; i < count; ++i) {
    vertices[i] = cpPolyShapeGetVert(_props.shape.get(), i);
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rodrigo