Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
physics.hpp File Reference
#include "definitions.hpp"
#include "../../core/definitions.hpp"
#include "../../core/node/components.hpp"
#include <box2d/base.h>
#include <box2d/box2d.h>
#include <box2d/collision.h>
#include <box2d/id.h>
#include <box2d/types.h>
#include <functional>

Go to the source code of this file.

Classes

struct  std::hash< b2ShapeId >
 
class  PhysicsBody
 
class  Physics
 
class  StaticBody
 
class  RigidBody
 
class  KinematicBody
 

Functions

bool operator== (const b2ShapeId &a, const b2ShapeId &b) noexcept
 
 CEREAL_REGISTER_TYPE (RigidBody)
 
 CEREAL_REGISTER_TYPE (StaticBody)
 
 CEREAL_REGISTER_POLYMORPHIC_RELATION (Component, RigidBody)
 
 CEREAL_REGISTER_POLYMORPHIC_RELATION (Component, StaticBody)
 

Function Documentation

◆ CEREAL_REGISTER_POLYMORPHIC_RELATION() [1/2]

CEREAL_REGISTER_POLYMORPHIC_RELATION ( Component  ,
RigidBody   
)

◆ CEREAL_REGISTER_POLYMORPHIC_RELATION() [2/2]

CEREAL_REGISTER_POLYMORPHIC_RELATION ( Component  ,
StaticBody   
)

◆ CEREAL_REGISTER_TYPE() [1/2]

CEREAL_REGISTER_TYPE ( RigidBody  )

◆ CEREAL_REGISTER_TYPE() [2/2]

CEREAL_REGISTER_TYPE ( StaticBody  )

◆ operator==()

bool operator== ( const b2ShapeId &  a,
const b2ShapeId &  b 
)
inlinenoexcept