Jump to content

[1.1.5] Sprite vs Group collision


psychotron
 Share

Recommended Posts

Hi folks,

 

I'm new to Phaser, seems like a nice framework so I decided to try it for recent Flappy Jam.

 

However I cannot wrap my head around sprite vs group collision.

 

I'm creating a rotated group (let's say 45 degrees) which consist of 2 sprites (lower/higher pipe parts).

But that rotation of group cause player to collide directly with AABB bounding boxes generated around rotated sprites.

 

How can I achieve desired collision directly on sprite within group? How can I switch from AABB to SAT based collisions?

 

Please see attached image for better description of a problem.

 

aCFEJ7Y.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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