mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Update ControllablePhysicsComponent.cpp
This commit is contained in:
parent
0f6b47a833
commit
f71b774a0a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user