fix sphere with negative radius getting culled to early in physics collider debug draw

This commit is contained in:
Saas
2026-03-17 22:02:36 +01:00
parent f42a9a760a
commit 1308465280
@@ -26,7 +26,7 @@ void SphereCollider::SetRadius(const float value)
void SphereCollider::DrawPhysicsDebug(RenderView& view)
{
const BoundingSphere sphere(_sphere.Center - view.Origin, _sphere.Radius);
const BoundingSphere sphere(_sphere.Center - view.Origin, Math::Abs(_sphere.Radius));
if (!view.CullingFrustum.Intersects(sphere))
return;
if (view.Mode == ViewMode::PhysicsColliders && !GetIsTrigger())