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

Method render

plugins/box2d.js:98–105  ·  view source on GitHub ↗

Render the object, uses box2d drawing if no tile info exists

()

Source from the content-addressed store, hash-verified

96
97 /** Render the object, uses box2d drawing if no tile info exists */
98 render()
99 {
100 // use default render or draw fixtures
101 if (this.tileInfo)
102 super.render();
103 else
104 this.drawFixtures(this.color, this.lineColor, this.lineWidth);
105 }
106
107 /** Render debug info */
108 renderDebugInfo()

Callers

nothing calls this directly

Calls 1

drawFixturesMethod · 0.95

Tested by

no test coverage detected