Sign in to follow this  
michaelcalkins

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.

 

 

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.