Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
#include <collision_shapes.h>
Public Member Functions | |
PolygonShape (const std::vector< glm::vec2 > &verts={}, BodyType body_type=BodyType::STATIC, const glm::vec2 &offset=glm::vec2(0.0f)) | |
![]() | |
virtual | ~CollisionShape ()=default |
Public Attributes | |
std::vector< glm::vec2 > | vertices |
![]() | |
b2ShapeId | id = b2_nullShapeId |
BodyType | body_type = BodyType::STATIC |
ShapeType | shape_type = ShapeType::RECTANGLE |
glm::vec2 | offset = glm::vec2(0.0f) |
|
inlineexplicit |
std::vector<glm::vec2> PolygonShape::vertices |