MCPcopy Create free account
hub / github.com/melonjs/melonJS / onBodyUpdate

Method onBodyUpdate

packages/melonjs/src/renderable/entity/entity.js:332–334  ·  view source on GitHub ↗

* update the bounds when the body is modified

()

Source from the content-addressed store, hash-verified

330 * update the bounds when the body is modified
331 */
332 onBodyUpdate() {
333 this.updateBounds();
334 }
335
336 preDraw(renderer) {
337 renderer.save();

Callers 3

constructorMethod · 0.95
addShapeMethod · 0.80
setVerticesMethod · 0.80

Calls 1

updateBoundsMethod · 0.95

Tested by

no test coverage detected