cocos2d-x polygon touch and physics sample

Hello there. Create equilateral polygons with cocos2d-x and I created a simple example of touching the polygon. I use this algorithm as touching polygons. http://alienryderflex.com/polygon/

screenshot : https://camo.githubusercontent.com/5ec976437e46facd2e8cd0b2fff4a46ca5f94f9b/687474703a2f2f692e68697a6c69726573696d2e636f6d2f70505931614a2e6a7067

code: https://github.com/indatawetrust/cocos2d-x-polygon

1 Like