physics rewrite
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
#include "wiProfiler.h"
|
||||
#include "wiInitializer.h"
|
||||
#include "wiStartupArguments.h"
|
||||
#include "wiPHYSICS.h"
|
||||
#include "wiBULLET.h"
|
||||
|
||||
#include "wiGraphicsDevice_DX11.h"
|
||||
#include "wiGraphicsDevice_DX12.h"
|
||||
@@ -43,16 +41,12 @@ MainComponent::MainComponent()
|
||||
infoDisplay = InfoDisplayer();
|
||||
|
||||
fadeManager.Clear();
|
||||
|
||||
physicsEngine = new wiBULLET;
|
||||
}
|
||||
|
||||
|
||||
MainComponent::~MainComponent()
|
||||
{
|
||||
wiRenderer::GetDevice()->WaitForGPU();
|
||||
|
||||
SAFE_DELETE(physicsEngine);
|
||||
}
|
||||
|
||||
void MainComponent::Initialize()
|
||||
@@ -154,10 +148,6 @@ void MainComponent::Run()
|
||||
}
|
||||
wiProfiler::GetInstance().EndRange(); // Fixed Update
|
||||
|
||||
wiProfiler::GetInstance().BeginRange("Physics", wiProfiler::DOMAIN_CPU);
|
||||
physicsEngine->Update((float)elapsedTime);
|
||||
wiProfiler::GetInstance().EndRange(); // Physics
|
||||
|
||||
wiLua::GetGlobal()->SetDeltaTime(elapsedTime);
|
||||
|
||||
// Variable-timed update:
|
||||
|
||||
Reference in New Issue
Block a user