iShellz Posted March 10, 2014 Share Posted March 10, 2014 I have no idea what to do, it seems to have be gone from the examples in phaser 1.2 Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 To create a P2 polygon? Link to comment Share on other sites More sharing options...
iShellz Posted March 11, 2014 Author Share Posted March 11, 2014 To create a P2 polygon? I suppose how to use arcade physics for the polygon i used in the old version. Im porting over now for text support. Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 The (very broken) polygons from the old version are no longer in 1.2. I would suggest waiting for release and seeing how they're done in p2 tbh. Link to comment Share on other sites More sharing options...
iShellz Posted March 11, 2014 Author Share Posted March 11, 2014 The (very broken) polygons from the old version are no longer in 1.2. I would suggest waiting for release and seeing how they're done in p2 tbh. are anyone of the shapes working in 1.2, just for more precise collision. Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 P2 supports rectangles, circles, particles, planes and polygon shapes. Polygons can be specified by a list of points in an array, or loaded in from JSON via a tool like Physics Editor. Creating them is easy, I just don't have time to explain tonight - but there's a demo in the 1.2 examples. Link to comment Share on other sites More sharing options...
Recommended Posts