Physics working
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
#ifndef HYDRAECSPHYSICSCOMPONENT
|
||||
#define HYDRAECSPHYSICSCOMPONENT
|
||||
|
||||
#include "../engine/HydraEngine.h"
|
||||
#include "../../engine/HydraEngine.h"
|
||||
//#include "../physics/HydraPhysicsDefinition.h"
|
||||
|
||||
#include <box3d/box3d.h>
|
||||
struct HydraPhysicsComponent
|
||||
{
|
||||
//
|
||||
HYDRA_STATE physics_state = HYDRA_STATE::Empty;
|
||||
// HydraPhysicsDefinitionStruct physics_definition;
|
||||
|
||||
HYDRA_PHYSICS_TYPE phyics_type = HYDRA_PHYSICS_TYPE::HYDRA_INVALID_PHYSICS_TYPE;
|
||||
HYDRA_PHYSICS_SHAPE physics_shape = HYDRA_PHYSICS_SHAPE::HYDRA_INVALID_PHYSICS_TYPE;
|
||||
float mass = 0;
|
||||
float height = 0;
|
||||
float width = 0;
|
||||
float depth = 0;
|
||||
b3BodyId body_id = {};
|
||||
bool initialised = false;
|
||||
bool needs_update = false;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user