Jump to content

Difference between Sprite.x and Sprite.body.x


Recommended Posts

I've got an issue or a misunderstanding about the point of origin of my canvas.
I've got this part of code :
this.physics.ninja.enableAABB(block, type);console.log(block.x, block.body.x);

result :

1450 1475

same with "y" axis, so why an object doesn't have the same coordinate than his body ? .. and how to fix it ?



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...