MCPcopy
hub / github.com/KilledByAPixel/LittleJS / renderDebugInfo

Method renderDebugInfo

plugins/box2d.js:108–114  ·  view source on GitHub ↗

Render debug info

()

Source from the content-addressed store, hash-verified

106
107 /** Render debug info */
108 renderDebugInfo()
109 {
110 const isAsleep = !this.getIsAwake();
111 const isStatic = this.getBodyType() === box2d.bodyTypeStatic;
112 const color = rgb(isAsleep?1:0, isAsleep?1:0, isStatic?1:0, .5);
113 this.drawFixtures(color);
114 }
115
116 /** Draws all this object's fixtures
117 * @param {Color} [color]

Callers

nothing calls this directly

Calls 4

getIsAwakeMethod · 0.95
getBodyTypeMethod · 0.95
drawFixturesMethod · 0.95
rgbFunction · 0.85

Tested by

no test coverage detected