add wheel information debug draw

This commit is contained in:
xxSeys1
2025-04-02 19:12:36 +02:00
parent 2e48be97b6
commit dd281bbca8
2 changed files with 25 additions and 6 deletions

View File

@@ -424,6 +424,12 @@ void WheeledVehicle::OnDebugDrawSelected()
{
DEBUG_DRAW_WIRE_SPHERE(BoundingSphere(data.State.TireContactPoint, 5.0f), Color::Green, 0, false);
}
if (DisplayWheelInfo)
{
const String text = String::Format(TEXT("Index: {}\nCollider: {}"), wheelIndex, wheel.Collider->GetName());
DEBUG_DRAW_TEXT(text, currentPos, WheelInfoColor, 10, 0);
}
}
}