Jump to content

Physics problem with rounded sprites


Recommended Posts

Hi, first to all I want to salute everyone, I'm new in ths community.


Well, I open this topic because I'm having some troubles witht the Sprites which I'm using...


My idea is to make a game of play between balls, I have loaded some sprites of 25x25 pixels, but the problem is that as you can see, when the corner of these two balls touch, they colide.




In the image the sprites are coliding, but the balls don't, how can I "cut" these sprite's corners?


Thanks to everyone, lets see how can I Fix it

Link to comment
Share on other sites



  you should mention which physics system are you using, if ARCADE, that you are describing desired behaviour because it uses bounding box as a body (rectangle). If you want to go with physics collision of circles with arcade physics you'll have to probably prepare you own collision function or look it up on the internet. Otherwise you can go with other physics system which support other shapes of bodies as well, check ti here and here P2 physics examples.


Was it helpful?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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