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 comment
Share on other sites


  • Recently Browsing   0 members

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