Fixed exploding body parts

This commit is contained in:
MontyTRC89 2024-08-16 10:05:01 +02:00
parent 33edb092a9
commit d8aced8ab4
2 changed files with 11 additions and 0 deletions

View file

@ -669,7 +669,9 @@ void EndGameLoop(int levelIndex, GameStatus reason)
void SetupInterpolation()
{
for (int i = 0; i < g_Level.Items.size(); i++)
{
g_Level.Items[i].DisableInterpolation = false;
}
}
void HandleControls(bool isTitle)

View file

@ -927,6 +927,15 @@ namespace TEN::Renderer
for (int j = 0; j < MAX_BONES; j++)
_items[i].OldAnimationTransforms[j] = _items[i].AnimationTransforms[j];
}
for (int i = 0; i < ITEM_COUNT_MAX; i++)
{
_effects[i].OldPosition = _effects[i].Position;
_effects[i].OldWorld = _effects[i].World;
_effects[i].OldTranslation = _effects[i].Translation;
_effects[i].OldRotation = _effects[i].Rotation;
_effects[i].OldScale = _effects[i].Scale;
}
}
} // namespace TEN::Renderer