Physics working
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#ifndef HYDRADELETEPHYSICSOBJECTTASK
|
||||
#define HYDRADELETEPHYSICSOBJECTTASK
|
||||
|
||||
#include "../HydraTask.h"
|
||||
#include "../../engine/HydraEngine.h"
|
||||
#include "../../renderer/HydraRenderer.h"
|
||||
#include <GLMIncludes.h>
|
||||
#include "../../GlewIncludes.h"
|
||||
#include "../../buffer/HydraTextureBufferManager.h"
|
||||
#include "../../ecs/components/HydraPhysicsComponent.h"
|
||||
|
||||
#include <box3d/box3d.h>
|
||||
|
||||
class HydraDeletePhysicsObjectTask : public HydraTask
|
||||
{
|
||||
private:
|
||||
b3BodyId m_body_id = {};
|
||||
protected:
|
||||
public:
|
||||
void Process() override
|
||||
{
|
||||
b3DestroyBody(m_body_id);
|
||||
}
|
||||
|
||||
void Initialise(b3BodyId body_id)
|
||||
{
|
||||
m_body_id = body_id;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* HYDRADELETEPHYSICSOBJECTTASK */
|
||||
Reference in New Issue
Block a user