Jump to content

What is a collision group, and how does it differ from a regular group?


DawnPaladin
 Share

Recommended Posts

According to the documentation, "A Group is a container for display objects including Sprites and Images." I haven't been able to find a definition for collision groups, but it seems they're part of the P2 physics engine; somehow they control what an object can collide with. The canonical example for collision groups uses both. A regular group has all sorts of properties; a collision group only has one property called "mask".

What is a collision group? What is it for? What happens to a sprite when it gets added to a collision group?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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