![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <definitions.hpp>
Public Member Functions | |
| Polygon () | |
| Polygon (const b2Polygon &polygon) | |
| operator b2Polygon () const | |
| template<class Archive > | |
| void | serialize (Archive &ar) |
Public Attributes | |
| Vector2 | centroid |
| int | count |
| Vector2 | normals [B2_MAX_POLYGON_VERTICES] |
| float | radius |
| Vector2 | vertices [B2_MAX_POLYGON_VERTICES] |
A simple polygon class, which basically mirrors the Box2D polygon class.
By the way, you should never manually fill these out. Instead, when using PolygonShape ["PolygonShapes"], use the PolygonShapes constructor.
| Polygon::Polygon | ( | ) |
|
explicit |
| Polygon::operator b2Polygon | ( | ) | const |
|
inline |
| Vector2 Polygon::centroid |
| int Polygon::count |
| Vector2 Polygon::normals[B2_MAX_POLYGON_VERTICES] |
| float Polygon::radius |
| Vector2 Polygon::vertices[B2_MAX_POLYGON_VERTICES] |