From 0f6b47a8334d7e66f930a88f7d1b4c34e6df573c Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sun, 10 Mar 2024 01:51:10 -0800 Subject: [PATCH] Update ControllablePhysicsComponent.cpp --- dGame/dComponents/ControllablePhysicsComponent.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dGame/dComponents/ControllablePhysicsComponent.cpp b/dGame/dComponents/ControllablePhysicsComponent.cpp index 398b5cd7..dccbe915 100644 --- a/dGame/dComponents/ControllablePhysicsComponent.cpp +++ b/dGame/dComponents/ControllablePhysicsComponent.cpp @@ -65,9 +65,7 @@ ControllablePhysicsComponent::~ControllablePhysicsComponent() { } void ControllablePhysicsComponent::Update(float deltaTime) { - if (m_Velocity == NiPoint3Constant::ZERO) return; - SetPosition(m_Position + (m_Velocity * deltaTime)); - Game::entityManager->SerializeEntity(m_Parent); + } void ControllablePhysicsComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInitialUpdate) { @@ -243,7 +241,6 @@ void ControllablePhysicsComponent::SetIsOnRail(bool val) { void ControllablePhysicsComponent::SetDirtyPosition(bool val) { m_DirtyPosition = val; } - void ControllablePhysicsComponent::AddPickupRadiusScale(float value) { m_ActivePickupRadiusScales.push_back(value); if (value > m_PickupRadius) {