Vivern Posted April 7, 2014 Share Posted April 7, 2014 1. In basic function Phaser 2.0.2 I found a simple functions of the intersection: Phaser.Rectangle.intersects – AABB-AABBPhaser.Circle.intersects – Circle–CircleIs it possible in Basic Phaser (without physics engine) to create complex poly shapes, as well as search for the intersection: AABB-Circle, Poly-AABB, Poly-Circle, Poly-Poly? 2. What Physics engines support custom poly shapes describing of the complex objects? p2 physics – support complex poly shapes. Arcade physics - ? Ninja physics - ? Link to comment Share on other sites More sharing options...
rich Posted April 7, 2014 Share Posted April 7, 2014 1) No.2) P2 only. Link to comment Share on other sites More sharing options...
Vivern Posted April 8, 2014 Author Share Posted April 8, 2014 In basic Phaser 2.0.2 contains a function hitPixelTest() for detect intersection of two bitmap with alpha channel? Link to comment Share on other sites More sharing options...
rich Posted April 8, 2014 Share Posted April 8, 2014 Not for collision between two sprites, no. Use polygons. They're faster and more accurate. Link to comment Share on other sites More sharing options...
Recommended Posts