Jump to content

Collision with graphic shapes


scofield
 Share

Recommended Posts

Not certain exactly, as I've never had to deal with it in Phaser yet, but, if you're drawing the arc as a Geometry object, you can try the .getBounds() from the Sprite object, so you'll be colliding shape to shape.

Link to comment
Share on other sites

17 hours ago, Umz said:

Not certain exactly, as I've never had to deal with it in Phaser yet, but, if you're drawing the arc as a Geometry object, you can try the .getBounds() from the Sprite object, so you'll be colliding shape to shape.

Arc is not Geometry object, it's just graphic element. I'm thinking about to add some "invisible" Geometry object (behind graphic element) that can we collide with other object, but for now I have some troubles.

Link to comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

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