2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-13 13:51:41 +00:00

fix: iw5 uses isFrictionInfinity as well

This commit is contained in:
Jan Laupetin
2026-05-03 16:00:30 +02:00
parent a31d3c4b88
commit 2d2ea30b45
4 changed files with 20 additions and 2 deletions
@@ -48,7 +48,12 @@ namespace
{
physPreset.mass = physPresetInfo.mass;
physPreset.bounce = physPresetInfo.bounce;
physPreset.friction = physPresetInfo.friction;
if (physPresetInfo.isFrictionInfinity != 0)
physPreset.friction = std::numeric_limits<float>::max();
else
physPreset.friction = physPresetInfo.friction;
physPreset.bulletForceScale = physPresetInfo.bulletForceScale;
physPreset.explosiveForceScale = physPresetInfo.explosiveForceScale;
physPreset.sndAliasPrefix = physPresetInfo.sndAliasPrefix;