converted to Jolt physics

This commit is contained in:
2025-11-23 02:00:31 +03:00
parent 3f0484e87c
commit cd82fb0eed
52 changed files with 4302 additions and 1458 deletions

View File

@@ -2,7 +2,6 @@
#define COMPONENTS_H_
#include <flecs.h>
#include <Ogre.h>
#include <OgreBullet.h>
namespace Ogre
{
class ImGuiOverlay;
@@ -20,7 +19,6 @@ struct GameData {
};
struct EngineData {
Ogre::SceneManager *mScnMgr;
Ogre::Bullet::DynamicsWorld *mWorld;
float delta;
float startupDelay;
int width;
@@ -75,24 +73,15 @@ struct App {
std::vector<OgreBites::InputListener *> listeners;
};
struct CollisionShape {
btCollisionShape *shape;
void *shape;
};
struct InWater {};
struct TerrainReady {};
struct WaterAlmostReady {};
struct WaterReady {};
struct GroundCheckReady {};
struct ParentSlot {
flecs::entity parent_e;
Ogre::String slot_name;
bool activated;
};
struct ObjectSlots {
std::unordered_map<Ogre::String,
std::pair<Ogre::String, Ogre::SceneNode *> >
slots;
};
struct Body2Entity {
std::unordered_map<btCollisionObject *, flecs::entity> entities;
/* std::unordered_map<btCollisionObject *, flecs::entity> entities; */
};
}
#endif