Jump to content

What does Phaser use to detect collisions?


ojn17041991
 Share

Recommended Posts

I've got a basic game with some collectable items and things work OK (the player can collect them), but if I change the method of movement from using the velocity property, to updating body.position directly, the collisions no longer apply. The sprite moves exactly as I would expect, but I would've expected the collision-box of the sprite to move with it, but it seems as though this doesn't happen. I know I can just use velocity, but I'd rather not (It's giving me problems anyway, but that's not really the purpose of this post). I just want to know what Phaser uses to determine collisions and why it isn't aligned with body.position by default.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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