From 1db8de34dffdb5dead9f8fd7a24c04825881f565 Mon Sep 17 00:00:00 2001 From: logsol Date: Wed, 6 May 2015 20:11:12 +0200 Subject: [PATCH] added possibility to not debug-draw sensor shapes --- app/Lib/Vendor/Box2D.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Lib/Vendor/Box2D.js b/app/Lib/Vendor/Box2D.js index 0e1e7c5..760681d 100755 --- a/app/Lib/Vendor/Box2D.js +++ b/app/Lib/Vendor/Box2D.js @@ -6006,6 +6006,10 @@ Box2D.postDefs = []; xf = b.m_xf; for (f = b.GetFixtureList(); f; f = f.m_next) { + // Disable drawing sensors by removing false || + if (false || f.IsSensor()) { + continue; + } s = f.GetShape(); if (b.IsActive() == false) { color.Set(0.5, 0.5, 0.3);