Jump to content

Difference between Sprite.x and Sprite.body.x


flo71099
 Share

Recommended Posts

Hi,
 
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 ?

 

thanks.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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