Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
CollisionShape Struct Reference

#include <collision_shapes.h>

Inheritance diagram for CollisionShape:
CapsuleShape CircleShape PolygonShape RectangleShape

Public Member Functions

virtual ~CollisionShape ()=default
 

Public Attributes

b2ShapeId id = b2_nullShapeId
 
BodyType body_type = BodyType::STATIC
 
ShapeType shape_type = ShapeType::RECTANGLE
 
glm::vec2 offset = glm::vec2(0.0f)
 

Constructor & Destructor Documentation

◆ ~CollisionShape()

virtual CollisionShape::~CollisionShape ( )
virtualdefault

Member Data Documentation

◆ body_type

BodyType CollisionShape::body_type = BodyType::STATIC

◆ id

b2ShapeId CollisionShape::id = b2_nullShapeId

◆ offset

glm::vec2 CollisionShape::offset = glm::vec2(0.0f)

◆ shape_type

ShapeType CollisionShape::shape_type = ShapeType::RECTANGLE

The documentation for this struct was generated from the following file: