Jump to content

Collision Coordinates Arcade Physics


FriarBabs
 Share

Recommended Posts

Not sure if this is what you want but you can probably start with this

game.physics.arcade.overlap(body1, body2, getXY, null, this);function getXY(body1,body2){var x = body1.x; //or body2.xvar y = body1.y; //or body2.y}

This code simply gets either bodies' coords once they collide.

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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