2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-12 21:31:43 +00:00

fix: do not clamp iw4 physpreset mass

This commit is contained in:
Jan Laupetin
2026-05-03 15:46:52 +02:00
parent c25feb3c35
commit 67bdb79654
2 changed files with 2 additions and 2 deletions
@@ -41,7 +41,7 @@ namespace
void CopyFromPhysPresetInfo(const PhysPresetInfo& physPresetInfo, PhysPreset& physPreset)
{
physPreset.mass = std::clamp(physPresetInfo.mass, 1.0f, 2000.0f) * 0.001f;
physPreset.mass = physPresetInfo.mass;
physPreset.bounce = physPresetInfo.bounce;
if (physPresetInfo.isFrictionInfinity != 0)
@@ -34,7 +34,7 @@ namespace
void CopyToPhysPresetInfo(const PhysPreset* physPreset, PhysPresetInfo* physPresetInfo)
{
physPresetInfo->mass = std::clamp(physPreset->mass * 1000.0f, 1.0f, 2000.0f);
physPresetInfo->mass = physPreset->mass;
physPresetInfo->bounce = physPreset->bounce;
if (std::isinf(physPreset->friction))