CircleShape
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef DAYDREAM_CRECTANGLESHAPE_H
|
||||
#define DAYDREAM_CRECTANGLESHAPE_H
|
||||
|
||||
#include "Core/Component.h"
|
||||
|
||||
namespace dd
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct RectangleShape : public Component
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif //DAYDREAM_CRECTANGLESHAPE_H
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef CCIRCLESHAPE_H__
|
||||
#define CCIRCLESHAPE_H__
|
||||
|
||||
#include "Core/Component.h"
|
||||
|
||||
namespace dd
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct CircleShape : public Component
|
||||
{
|
||||
// Circles are circles
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -12,16 +12,17 @@
|
||||
|
||||
namespace dd
|
||||
{
|
||||
namespace Events
|
||||
{
|
||||
struct Contact : Event
|
||||
{
|
||||
EntityID Entity1;
|
||||
EntityID Entity2;
|
||||
glm::vec2 ContactPoint;
|
||||
};
|
||||
}
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct Contact : Event
|
||||
{
|
||||
EntityID Entity1;
|
||||
EntityID Entity2;
|
||||
glm::vec2 ContactPoint;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif //Events_ECONTACT_h__
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef ESETIMPULSE_H__
|
||||
#define ESETIMPULSE_H__
|
||||
|
||||
#include "Core/EventBroker.h"
|
||||
#include "Core/Entity.h"
|
||||
|
||||
namespace dd
|
||||
{
|
||||
namespace Events
|
||||
{
|
||||
|
||||
struct Contact : Event
|
||||
{
|
||||
EntityID Entity;
|
||||
glm::vec2 Direction;
|
||||
float Strength;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -5,12 +5,13 @@
|
||||
|
||||
#include "Core/System.h"
|
||||
#include "Core/World.h"
|
||||
#include "Core/CBoxShape.h"
|
||||
#include "Physics/CBoxShape.h"
|
||||
#include "Physics/CPhysics.h"
|
||||
#include <Box2D/Box2D.h>
|
||||
#include "Core/CTransform.h"
|
||||
#include "Transform/TransformSystem.h"
|
||||
#include "Physics/EContact.h"
|
||||
#include "Physics/CCircleShape.h"
|
||||
|
||||
|
||||
namespace dd
|
||||
|
||||
Reference in New Issue
Block a user