Minor cleanup

pull/638/head
scrawl 10 years ago
parent cdc47fa874
commit 712cef36b0

@ -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…
Cancel
Save