YuriyTimoshenkov / Slowpoke.Net

2 stars 0 forks source link

bodyImageObject is undefined #113

Open dimapct opened 9 years ago

dimapct commented 9 years ago

positionChangeHandler = (body, bodyImageObject) => { bodyImageObject.image.x = body.gameRect.centerx; bodyImageObject.image.y = body.gameRect.centery; bodyImageObject.infoboxes.forEach(function (infobox) { infobox.updatePosition(new Point(bodyImageObject.image.x, bodyImageObject.image.y)); }); if (this.targetBody.id === body.id) { this.updateContainersPosition(); } }