CheeseEngine
A 2D Game Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
types.hpp File Reference
#include <EventBus.hpp>
#include <entt/entt.hpp>
#include <glm/glm.hpp>
#include <variant>
Include dependency graph for types.hpp:

Go to the source code of this file.

Classes

struct  phys2d::AABB
 
struct  phys2d::TransformComponent
 
struct  phys2d::RigidBodyComponent
 
struct  phys2d::PolygonGeometry
 
struct  phys2d::CircleGeometry
 
struct  phys2d::CapsuleGeometry
 
struct  phys2d::SegmentGeometry
 
struct  phys2d::SegmentChain
 
struct  phys2d::ColliderComponent
 
class  phys2d::PhysicsSystem
 

Namespaces

namespace  phys2d
 
namespace  phys2d::ColliderLayers
 

Typedefs

using phys2d::ShapeData = std::variant< PolygonGeometry, CircleGeometry >
 

Enumerations

enum class  phys2d::BodyType { phys2d::Static , phys2d::Kinematic , phys2d::Dynamic }
 
enum class  phys2d::BodyShape {
  phys2d::Polygon , phys2d::Circle , phys2d::Capsule , phys2d::Segment ,
  phys2d::SegmentChain
}
 

Functions

bool phys2d::checkCollision (const AABB &aabb1, const AABB &aabb2)
 checks the collision between two AABB-objects
 

Variables

constexpr float phys2d::pi = 3.14159265
 
constexpr float phys2d::pi2 = pi * 2
 
constexpr float phys2d::inf = 2e5
 
constexpr float phys2d::epsilon = 1e-6
 
constexpr float phys2d::rb_defaultDamping = 0.01f
 
constexpr float phys2d::rb_defaultRestitution = 0.5f
 
constexpr float phys2d::rb_defaultFriction = 0.2f
 
constexpr float phys2d::rb_defaultInvMass = 1.0f
 
constexpr float phys2d::rb_defaultInvInertia = 1.0f
 
constexpr float phys2d::rb_defaultGravityScale = 1.0f
 
constexpr glm::vec2 phys2d::cd_defaultLocalOffset = {0.0f, 0.0f}
 
constexpr bool phys2d::cd_defaultTriggerStatus = false
 
constexpr uint32_t phys2d::ColliderLayers::None = 0x0000
 
constexpr uint32_t phys2d::ColliderLayers::Player = 0x0001
 
constexpr uint32_t phys2d::ColliderLayers::PlayerProjectile = 0x0002
 
constexpr uint32_t phys2d::ColliderLayers::Enemy = 0x0004
 
constexpr uint32_t phys2d::ColliderLayers::EnemyProjectile = 0x0008
 
constexpr uint32_t phys2d::ColliderLayers::Environment = 0x0010
 
constexpr uint32_t phys2d::ColliderLayers::All = 0xFFFF