Sign in to follow this  
pain_gwar

Circle Collider Bug

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.