Better boat handling

This commit is contained in:
2025-11-30 18:28:26 +03:00
parent cd82fb0eed
commit 5b014dcb65
21 changed files with 938 additions and 230 deletions

View File

@@ -6,6 +6,7 @@ namespace JPH
{
class Shape;
class CharacterBase;
class BodyID;
}
namespace Ogre
{
@@ -45,6 +46,9 @@ struct CharacterVelocity {
Ogre::Vector3 gvelocity;
Ogre::Vector3 velocity;
};
struct CachedMass {
float mass;
};
struct PhysicsModule {
PhysicsModule(flecs::world &ecs);
static flecs::entity createTerrainChunkBody(Ogre::SceneNode *node,
@@ -52,6 +56,7 @@ struct PhysicsModule {
const Ogre::Vector3 &offset,
const Ogre::Vector3 &scale,
int sampleCount);
static void controlPhysics(flecs::entity e, bool enable);
};
}
#endif
#endif