Group physics collisions

I was wondering if it’s possible in Corona to have only certain elements to interact (collide) with others?

I have a bomb on the scene and I want the blast to interact only with the crates, but the other objects on the scene with physics properties to remain untouched…

How can I group them and tell them which group will collide with other?

Thank you!

[import]uid: 89239 topic_id: 17862 reply_id: 317862[/import]

yup, collision filtering:

http://developer.anscamobile.com/forum/2010/10/25/collision-filters-helper-chart [import]uid: 49447 topic_id: 17862 reply_id: 68183[/import]

Very helpful!

Thank you guys :slight_smile:

[import]uid: 89239 topic_id: 17862 reply_id: 68194[/import]

Using Collision Filters!

This might help you:
http://developer.anscamobile.com/forum/2010/10/25/collision-filters-helper-chart

Cheer :slight_smile:

Edit: Aaah I was searching way too slow :smiley: [import]uid: 13097 topic_id: 17862 reply_id: 68186[/import]

I can’t remember where I got this spreadsheet, so if anyone knows please chime in so I can give proper credit where it is due!

That said, this spreadsheet has helped out tremendously when setting up collision filters:

http://dl.dropbox.com/u/19046160/Collision%20Filters.xls

Feel free to download and use it! Just change the names of your groups on the left, then use the matrix to assign which groups collide. [import]uid: 49447 topic_id: 17862 reply_id: 68196[/import]