Jump to content

question about p2 body and sprite position


scofieldly
 Share

Recommended Posts

hi all, 

I have a problem about the p2 body and sprite positon

when I enable a p2 body to a sprite, I use

fish.body.setRectangle(fish.width, fish.height);

to set the body shape, but the position of body is far away from the sprite, anyone know what is the problem? thx

 

 

image.png.981045acf30c9b309edd73646b878035.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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