mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Update ControllablePhysicsComponent.cpp
This commit is contained in:
@@ -65,7 +65,9 @@ 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) {
|
||||
|
Reference in New Issue
Block a user