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

@@ -35,9 +35,14 @@ void SphereCollider::DrawPhysicsDebug(RenderView& view)
DEBUG_DRAW_WIRE_SPHERE(_sphere, Color::GreenYellow * 0.8f, 0, true);
}
void SphereCollider::OnDebugDrawSelected()
void SphereCollider::OnDebugDrawSelf()
{
DEBUG_DRAW_WIRE_SPHERE(_sphere, Color::GreenYellow, 0, false);
}
void SphereCollider::OnDebugDrawSelected()
{
OnDebugDrawSelf();
if (_contactOffset > 0)
{