mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added possibility to not debug-draw sensor shapes
This commit is contained in:
parent
8da2d48643
commit
1db8de34df
1 changed files with 4 additions and 0 deletions
4
app/Lib/Vendor/Box2D.js
vendored
4
app/Lib/Vendor/Box2D.js
vendored
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue