Physics3D: Rename Physiscs3DStepListener to PhysWorld3DStepListener

This commit is contained in:
SirLynix
2024-02-10 14:23:01 +01:00
parent 8c41ac30c9
commit 965a00182c
9 changed files with 49 additions and 49 deletions

View File

@@ -6,8 +6,8 @@
#include <Nazara/Physics3D/Collider3D.hpp>
#include <Nazara/Physics3D/JoltHelper.hpp>
#include <Nazara/Physics3D/PhysCharacter3D.hpp>
#include <Nazara/Physics3D/PhysWorld3DStepListener.hpp>
#include <Nazara/Physics3D/Physics3D.hpp>
#include <Nazara/Physics3D/Physiscs3DStepListener.hpp>
#include <NazaraUtils/MemoryPool.hpp>
#include <NazaraUtils/StackVector.hpp>
#include <Jolt/Jolt.h>
@@ -600,7 +600,7 @@ namespace Nz
{
m_world->physicsSystem.Update(stepSize, 1, &m_world->tempAllocator, &jobSystem);
for (Physiscs3DStepListener* stepListener : m_stepListeners)
for (PhysWorld3DStepListener* stepListener : m_stepListeners)
stepListener->PostSimulate(stepSize);
m_timestepAccumulator -= m_stepSize;
@@ -677,7 +677,7 @@ namespace Nz
void PhysWorld3D::OnPreStep(float deltatime)
{
for (Physiscs3DStepListener* stepListener : m_stepListeners)
for (PhysWorld3DStepListener* stepListener : m_stepListeners)
stepListener->PreSimulate(deltatime);
}
}

View File

@@ -2,18 +2,18 @@
// This file is part of the "Nazara Engine - Physics3D module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Physics3D/Physiscs3DStepListener.hpp>
#include <Nazara/Physics3D/PhysWorld3DStepListener.hpp>
#include <Nazara/Physics3D/Debug.hpp>
namespace Nz
{
Physiscs3DStepListener::~Physiscs3DStepListener() = default;
PhysWorld3DStepListener::~PhysWorld3DStepListener() = default;
void Physiscs3DStepListener::PostSimulate(float /*elapsedTime*/)
void PhysWorld3DStepListener::PostSimulate(float /*elapsedTime*/)
{
}
void Physiscs3DStepListener::PreSimulate(float /*elapsedTime*/)
void PhysWorld3DStepListener::PreSimulate(float /*elapsedTime*/)
{
}
}