swissnetizen Posted February 13, 2016 Share Posted February 13, 2016 I need to detect the side on which my sprites collide, I'm using P2 physics. I think there should be something in the contact equation array. Link to comment Share on other sites More sharing options...
swissnetizen Posted February 13, 2016 Author Share Posted February 13, 2016 There isn't anything in the Contact Equation array. The easiest way I have found is: // Returns direction in radians Math.atan2( sprite1.x-sprite2x, sprite1.y-sprite2y ) Link to comment Share on other sites More sharing options...
Recommended Posts