From 98e9c89a548f19d728299b83b4fe5bec343d8535 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sun, 6 Aug 2023 10:12:17 +0200 Subject: [PATCH] ChipmunkPhysics2D/PhysWorld2D: Set default colors for debug draw options --- include/Nazara/ChipmunkPhysics2D/ChipmunkPhysWorld2D.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Nazara/ChipmunkPhysics2D/ChipmunkPhysWorld2D.hpp b/include/Nazara/ChipmunkPhysics2D/ChipmunkPhysWorld2D.hpp index 5914f9c99..c6b946c95 100644 --- a/include/Nazara/ChipmunkPhysics2D/ChipmunkPhysWorld2D.hpp +++ b/include/Nazara/ChipmunkPhysics2D/ChipmunkPhysWorld2D.hpp @@ -101,9 +101,9 @@ namespace Nz struct DebugDrawOptions { - Color constraintColor; - Color collisionPointColor; - Color shapeOutlineColor; + Color constraintColor = Color::Blue(); + Color collisionPointColor = Color::Green(); + Color shapeOutlineColor = Color::Red(); DebugDrawCircleCallback circleCallback; DebugDrawGetColorCallback colorCallback; @@ -112,7 +112,7 @@ namespace Nz DebugDrawSegmentCallback segmentCallback; DebugDrawTickSegmentCallback thickSegmentCallback; - void* userdata; + void* userdata = nullptr; }; struct NearestQueryResult