mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added possibility to not debug-draw sensor shapes
This commit is contained in:
parent
cb23c1fb05
commit
7115292384
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;
|
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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue