ColliderShape

Declaration

typedef std::variant<ColliderBox, ColliderSphere, ColliderCapsule> ColliderShape;

Notes

Being a std::variant, it is possible to check if it contains a ColliderBox, ColliderSphere or a ColliderCapsule by using std::holds_alternative (for example: std::holds_alternative<ColliderBox>(collider) will return true if the ColliderShape contains a ColliderBox) and get the real collider with std::get (for example: ColliderBox& box = std::get<ColliderBox>(collider)).