Better boat handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user