diff --git a/WickedEngine/wiPhysics_Jolt.cpp b/WickedEngine/wiPhysics_Jolt.cpp index a5b770720..07e62b849 100644 --- a/WickedEngine/wiPhysics_Jolt.cpp +++ b/WickedEngine/wiPhysics_Jolt.cpp @@ -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();