Sign in to follow this  
Tangaroa

Sprites with separate collision regions?

Recommended Posts

This has to be a FAQ, but I did not find an answer from a quick search. I will number the questions for reference.

1. If I want a sprite to have a separate collision rectangle that is smaller than the size of the sprite, how is that done in Phaser?

2. What if I want to have more than one collision rectangle for an unusual shape?

3. What if I want to check for collisions with triangles, circles, ellipses, etc? Are there ready-to-go functions for these situations? If not, where would I plug in a handwritten algorithm?

4. If I wanted to have thousands of objects running around a huge map, does Phaser come with an algorithm to cut down the search space for each object's collision detection or is there a good third-party library to use for this situation?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.