Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
constructor
Method · 0.95
addShape
Method · 0.80
setVertices
Method · 0.80
Calls
1
updateBounds
Method · 0.95
Tested by
no test coverage detected