Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
CapsuleShape Class Reference

#include <definitions.hpp>

Inheritance diagram for CapsuleShape:
Shape

Public Member Functions

 CapsuleShape ()=default
 
 CapsuleShape (Vector2 center1, Vector2 center2, float radius, Vector2 origin)
 
template<class Archive >
void save (Archive &ar) const
 
template<class Archive >
void load (Archive &ar)
 
- Public Member Functions inherited from Shape
virtual ~Shape ()=default
 
void applyMaterial (const Material &material)
 
ShapesetSensor (bool sensor)
 
template<class Archive >
void save (Archive &ar) const
 
template<class Archive >
void load (Archive &ar)
 

Public Attributes

Capsule capsule
 
Capsule scaledCapsule
 
- Public Attributes inherited from Shape
b2ShapeDef shapeDef
 
Vector2 origin
 

Additional Inherited Members

- Protected Member Functions inherited from Shape
void postLoad ()
 

Constructor & Destructor Documentation

◆ CapsuleShape() [1/2]

CapsuleShape::CapsuleShape ( )
default

◆ CapsuleShape() [2/2]

CapsuleShape::CapsuleShape ( Vector2  center1,
Vector2  center2,
float  radius,
Vector2  origin 
)

Member Function Documentation

◆ load()

template<class Archive >
void CapsuleShape::load ( Archive &  ar)
inline

◆ save()

template<class Archive >
void CapsuleShape::save ( Archive &  ar) const
inline

Member Data Documentation

◆ capsule

Capsule CapsuleShape::capsule

◆ scaledCapsule

Capsule CapsuleShape::scaledCapsule

The documentation for this class was generated from the following files: