physics ragdoll creation crash fix with negative scaled joint

This commit is contained in:
Turánszki János
2024-09-15 18:05:34 +02:00
parent a447c5e29b
commit ccc1dd05cf
+3
View File
@@ -769,6 +769,9 @@ namespace wi::physics
}
}
capsule_radius = std::abs(capsule_radius);
capsule_height = std::abs(capsule_height);
ShapeSettings::ShapeResult shape_result;
CapsuleShapeSettings shape_settings(capsule_height * 0.5f, capsule_radius);
shape_settings.SetEmbedded();