Jump to content

body.overlapX/overlapY always giving 0 in Phaser?


Madclaws
 Share

Recommended Posts

I want to check how much of my second sprite is overlapped with first sprite in callback function,so that i can determine if the overlap is enough for(% of overlapping) for further process.But when i check that with overlapY/overlapX .i am getting 0 always .Please help. 

Link to comment
Share on other sites

Ok sorry for the question.Because of Arcade physics being AABB i can't really check collision with rotated objects.So i override phaser's separate function with my own collision checking.So there should be no overlapX.I'm a fool.Sorry again. 

Between is there any way to check collision of rotated objects in Arcade Physics:D.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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