mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:45:34 +00:00
Minor cleanup
This commit is contained in:
parent
cdc47fa874
commit
712cef36b0
3 changed files with 3 additions and 8 deletions
|
@ -594,7 +594,7 @@ namespace MWPhysics
|
|||
// ---------------------------------------------------------------
|
||||
|
||||
PhysicsSystem::PhysicsSystem(Resource::ResourceSystem* resourceSystem, osg::ref_ptr<osg::Group> parentNode)
|
||||
: mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS(), resourceSystem->getSceneManager()))
|
||||
: mShapeManager(new NifBullet::BulletShapeManager(resourceSystem->getVFS()))
|
||||
, mDebugDrawEnabled(false)
|
||||
, mTimeAccum(0.0f)
|
||||
, mWaterHeight(0)
|
||||
|
|
|
@ -4,14 +4,11 @@
|
|||
|
||||
#include <components/nifbullet/bulletnifloader.hpp>
|
||||
|
||||
#include <components/resource/scenemanager.hpp>
|
||||
|
||||
namespace NifBullet
|
||||
{
|
||||
|
||||
BulletShapeManager::BulletShapeManager(const VFS::Manager* vfs, Resource::SceneManager* sceneManager)
|
||||
BulletShapeManager::BulletShapeManager(const VFS::Manager* vfs)
|
||||
: mVFS(vfs)
|
||||
, mSceneManager(sceneManager)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -25,15 +25,13 @@ namespace NifBullet
|
|||
class BulletShapeManager
|
||||
{
|
||||
public:
|
||||
BulletShapeManager(const VFS::Manager* vfs, Resource::SceneManager* sceneManager);
|
||||
BulletShapeManager(const VFS::Manager* vfs);
|
||||
~BulletShapeManager();
|
||||
|
||||
osg::ref_ptr<BulletShapeInstance> createInstance(const std::string& name);
|
||||
|
||||
private:
|
||||
const VFS::Manager* mVFS;
|
||||
// need to load keyframes to know what nodes are going to be animated
|
||||
Resource::SceneManager* mSceneManager;
|
||||
|
||||
typedef std::map<std::string, osg::ref_ptr<BulletShape> > Index;
|
||||
Index mIndex;
|
||||
|
|
Loading…
Reference in a new issue