Jump to content

Possible to create a 'basket' or 'bucket' that catches other physics objects in Arcade physics?


ChubbRck
 Share

Recommended Posts

Hi all, new to Phaser here, loving the framework but finding the documentation kind of hard to navigate. Trying to find out how to make a 'basket' or 'bucket' object that can catch other spherical objects. I'm thinking it could be constructed of three rectangles even, the outer two at an angle.

 

Is this possible with the Arcade Physics engine? If not, is there a better physics engine to choose? I'm not sure of the advantages and disadvantages of Ninja and P2 - does anyone have any insight that might be helpful?

 

Thanks so much -

 

Nick

Link to comment
Share on other sites

There aren't any spherical bodies in Arcade Physics, so I wouldn't recommend it for this. I would use P2. You could create a simple basket shape using polygons and define the points directly in code, or 1 body with 3 rectangle shapes for the sides.

Link to comment
Share on other sites

Hi Rich, thanks so much for your response -

 

I was thinking of using Ninja physics and attaching two sloped tiles to a rectangle to create a basket. Do you think this approach might be lighter/heavier?

 

Thanks again - 

 

Nick

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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