added possibility to not debug-draw sensor shapes

This commit is contained in:
logsol 2015-05-06 20:11:12 +02:00
parent cb23c1fb05
commit 7115292384

View file

@ -6006,6 +6006,10 @@ Box2D.postDefs = [];
xf = b.m_xf; xf = b.m_xf;
for (f = b.GetFixtureList(); for (f = b.GetFixtureList();
f; f = f.m_next) { f; f = f.m_next) {
// Disable drawing sensors by removing false ||
if (false || f.IsSensor()) {
continue;
}
s = f.GetShape(); s = f.GetShape();
if (b.IsActive() == false) { if (b.IsActive() == false) {
color.Set(0.5, 0.5, 0.3); color.Set(0.5, 0.5, 0.3);