Jump to content

[P2js] Displaying collision area between sprites


Maxime
 Share

Recommended Posts

Hi,

 

I'm playing around with P2.js and I wanted to know if it's possible to display the collision area between two sprite.

I want to display little explosion right on the collision point, to make collision a bit more real.

 

In the collision callback I'm getting the two collided sprites, a Rectangle and a Convex.

There is just height and width in the Rectangle.

Am I missing something?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...