Jump to content

pain_gwar
 Share

Recommended Posts

Hi guys,  new to Phaser so maybe this isn't a bug. I searched on the forum but i cannot find any information about it, hope it will be not already asked.

 

I found an issue regarding the circle body collider, in particular when scaling a sprite the circle collider doesn't fit the new scale of the sprite.

 

You can try this out by modify the "Circle vs Polygon" example, just add this line of code:

 

"sprite4.scale.setTo(0.7, 0.7);"

 

after creating sprite4 in create() function.

 

You can find an image attached.

 

The fact is that if you remove the circle body (using the rect one) everything's fine.

 

I think that is possible to modify the center of the collider manually, but i wanted to signal the problem.

post-7149-0-80732400-1393332668.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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