Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Tool: CategoryManager… 2D collisions made *easy*

edited September 20 in Code Sharing Posts: 1,548

CategoryManager can take the pain out of managing 2D physics categories.

It uses named categories instead of numbers, and provides four core functions:

  • putIn(categoryName, body)
  • takeOutOf(categoryName, body)
  • detect(categoryName, body)
  • ignore(categoryName, body)

... with these commands, you can manage how bodies detect each other without having to think about category tables or mask tables at all

Comments

Sign In or Register to comment.