Add drawing RigidBody center of mass and attached colliders

#2325 #3247
This commit is contained in:
Wojtek Figat
2025-10-08 22:16:16 +02:00
parent 73976f3ed9
commit e2fc8a6283
11 changed files with 75 additions and 11 deletions

View File

@@ -85,13 +85,18 @@ void MeshCollider::DrawPhysicsDebug(RenderView& view)
}
}
void MeshCollider::OnDebugDrawSelected()
void MeshCollider::OnDebugDrawSelf()
{
if (CollisionData && CollisionData->IsLoaded())
{
const auto& debugLines = CollisionData->GetDebugLines();
DEBUG_DRAW_LINES(Span<Float3>(debugLines.Get(), debugLines.Count()), _transform.GetWorld(), Color::GreenYellow, 0, false);
}
}
void MeshCollider::OnDebugDrawSelected()
{
OnDebugDrawSelf();
// Base
Collider::OnDebugDrawSelected();