Render debug info
()
| 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] |
nothing calls this directly
no test coverage detected