Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

Filtering Collisions - how to?

$
0
0

@Greenhouse wrote:

I'm reading Programming Guide Ch12 - Physics and I'm slightly confused how to setup and use CategoryBitmask and CollisionBitmask to filter collisions properly.

Say, I have the following physics bodies:

Body player, dumb, edge, barrier, bonus, tile

  • player can collide with dumb, edge and bonus
  • dumb can collide with dumb, edge and barrier
  • barrier can collide with dumb
  • bonus can collide with player
  • tile can collide with nothing

How to setup bitmasks and filter body collisions in such scenario?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>