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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user