Jump to content

How can I write custom collisions for rectangles against polygons?

Recommended Posts

We want to make our maps using polygons but in an arcade physics game using custom collisions somehow.  

Everything in our game is a basic rectangle except for the maps and we are trying to get optimal performance by only detecting collisions between rectangles and polygons.

We tried:

  • Box2D but this would require a game rewrite for a small segment of desired functionality and less performance
  • arcade-slopes-plugin but we are wanting to make maps faster and scaling tilemaps is buggy

I'm currently studying the arcade-slopes-plugin to figure out what we need to do.

Anyone know where to start writing a custom collision between an arcade rectangle and a polygon?

Even a similar plugin or code example would helpful I'm perfectly willing to write a plugin for this, just not sure where to start.



Link to post
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...