mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 23:45:32 +00:00
Make Bullet DebugDrawer's default state match the physics system
This commit is contained in:
parent
8f2701c24b
commit
06d1e70aac
3 changed files with 5 additions and 7 deletions
|
@ -93,7 +93,7 @@ namespace MWPhysics
|
|||
}
|
||||
|
||||
mTaskScheduler = std::make_unique<PhysicsTaskScheduler>(mPhysicsDt, mCollisionWorld);
|
||||
mDebugDrawer = std::make_unique<MWRender::DebugDrawer>(mParentNode, mCollisionWorld.get());
|
||||
mDebugDrawer = std::make_unique<MWRender::DebugDrawer>(mParentNode, mCollisionWorld.get(), mDebugDrawEnabled);
|
||||
}
|
||||
|
||||
PhysicsSystem::~PhysicsSystem()
|
||||
|
|
|
@ -14,13 +14,11 @@
|
|||
namespace MWRender
|
||||
{
|
||||
|
||||
DebugDrawer::DebugDrawer(osg::ref_ptr<osg::Group> parentNode, btCollisionWorld *world)
|
||||
DebugDrawer::DebugDrawer(osg::ref_ptr<osg::Group> parentNode, btCollisionWorld *world, int debugMode)
|
||||
: mParentNode(parentNode),
|
||||
mWorld(world),
|
||||
mDebugOn(true)
|
||||
mWorld(world)
|
||||
{
|
||||
|
||||
createGeometry();
|
||||
setDebugMode(debugMode);
|
||||
}
|
||||
|
||||
void DebugDrawer::createGeometry()
|
||||
|
|
|
@ -48,7 +48,7 @@ protected:
|
|||
|
||||
public:
|
||||
|
||||
DebugDrawer(osg::ref_ptr<osg::Group> parentNode, btCollisionWorld *world);
|
||||
DebugDrawer(osg::ref_ptr<osg::Group> parentNode, btCollisionWorld *world, int debugMode = 1);
|
||||
~DebugDrawer();
|
||||
|
||||
void step();
|
||||
|
|
Loading…
Reference in a new issue