24 lines
No EOL
525 B
C++
24 lines
No EOL
525 B
C++
#pragma once
|
|
|
|
#include <btBulletDynamicsCommon.h>
|
|
#include <glm/glm.hpp>
|
|
#include <system.hpp>
|
|
|
|
class PhysicsSystem : public System
|
|
{
|
|
public:
|
|
void Initialize() override;
|
|
void Cleanup() override;
|
|
|
|
void Update() override;
|
|
|
|
bool Raycast(glm::vec3 start, glm::vec3 end);
|
|
|
|
private:
|
|
btDbvtBroadphase* m_broadPhase;
|
|
btDefaultCollisionConfiguration* m_collisionConfiguration;
|
|
btSequentialImpulseConstraintSolver* m_solver;
|
|
btCollisionDispatcher* m_dispatcher;
|
|
|
|
btDynamicsWorld* m_dynamicsWorld;
|
|
}; |