![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <definitions.hpp>
Public Member Functions | |
| Capsule () | |
| Capsule (const b2Capsule &capsule) | |
| operator b2Capsule () const | |
| template<class Archive > | |
| void | serialize (Archive &ar) |
Public Attributes | |
| Vector2 | center1 |
| Vector2 | center2 |
| float | radius |
The capsule class defines the two ends of the capsule (in Vector2 ["Vector2s"]), and the radius of the end circles.
| Capsule::Capsule | ( | ) |
|
explicit |
| Capsule::operator b2Capsule | ( | ) | const |
|
inline |
| Vector2 Capsule::center1 |
| Vector2 Capsule::center2 |
| float Capsule::radius |