fix: laggy property models (and probably more) (#1646)

* fix laggy property models (and probably more)

global fix correcting the initial physics motion state from 0 to 5 (confirm in client).  packet captures from a few worlds (didnt scan more than 5 files) show that the value for simple physics was either 5, or 4 for property models, or 1 for property models with behaviors.

properties with pre-built models no longer lag and values of physics types should be correct across the board

* will test this briefly
This commit is contained in:
David Markowitz
2024-11-17 18:44:35 -08:00
committed by GitHub
parent c7dd8205a4
commit 112c2367cc
4 changed files with 22 additions and 5 deletions

View File

@@ -61,6 +61,7 @@ void SGCannon::OnStartup(Entity* self) {
if (simplePhysicsComponent != nullptr) {
simplePhysicsComponent->SetPhysicsMotionState(5);
}
Game::entityManager->SerializeEntity(self);
}
void SGCannon::OnPlayerLoaded(Entity* self, Entity* player) {