michaelcalkins Posted February 8, 2017 Share Posted February 8, 2017 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 More sharing options...
samme Posted February 8, 2017 Share Posted February 8, 2017 https://github.com/jriecken/sat-js michaelcalkins 1 Link to comment Share on other sites More sharing options...
michaelcalkins Posted February 8, 2017 Author Share Posted February 8, 2017 7 minutes ago, samme said: https://github.com/jriecken/sat-js Thank you for the new google terms found: https://github.com/hexus/phaser-sat-example Going to run with this! Link to comment Share on other sites More sharing options...
michaelcalkins Posted February 10, 2017 Author Share Posted February 10, 2017 Update on progress for any future googlers: Still needs tons of work but the plugin code is here: https://github.com/michaeljcalkins/arcade-polygons-plugin hexus and samme 2 Link to comment Share on other sites More sharing options...
Recommended Posts