Add Physics Colliders debug view mode to display physical world shapes (solid)

This commit is contained in:
Wojtek Figat
2021-07-14 14:49:41 +02:00
parent 151b478a97
commit 04c6ecc963
13 changed files with 69 additions and 18 deletions

View File

@@ -371,7 +371,7 @@ void SceneRendering::Draw(RenderContext& renderContext)
if (view.Pass & DrawPass::GBuffer)
{
// Draw physics shapes
if (view.Flags & ViewFlags::PhysicsDebug)
if (view.Flags & ViewFlags::PhysicsDebug || view.Mode == ViewMode::PhysicsColliders)
{
for (int32 i = 0; i < PhysicsDebug.Count(); i++)
{