Making this work

This commit is contained in:
2025-08-21 10:47:57 +03:00
parent 52de5b16a8
commit d3b2ae30d5
9 changed files with 147 additions and 46 deletions

View File

@@ -38,6 +38,7 @@ class Character : public Ogre::FrameListener {
btCompoundShape *mCollisionShape;
btPairCachingGhostObject *mGhostObject;
Ogre::Bullet::DynamicsWorld *mWorld;
bool mUpdate;
public:
Character(Ogre::SceneManager *scnMgr, const Ogre::String &modelName,
@@ -112,4 +113,16 @@ public:
return mGoalDirection;
}
Ogre::Vector3 getPosition();
};
void enableUpdates()
{
mUpdate = true;
}
void disableUpdates()
{
mUpdate = false;
}
bool getUpdates()
{
return mUpdate;
}
};