{{newin|[[0.8.0]]|080|type=method}}

{{notice|Fixture:setMask works in '''NOT'''.Categories selected will '''NOT''' collide with this fixture. If you want to work as Box2d works with Mask use instead [[Fixture:setFilterData]]}}

Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16.

This fixture will '''NOT''' collide with the fixtures that are in the selected categories if the other fixture also has a category of this fixture selected.

== Function ==
=== Synopsis ===
<source lang="lua">
Fixture:setMask( mask1, mask2, ... )
</source>
=== Arguments ===
{{param|number|mask1|The first category.}}
{{param|number|mask2|The second category.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Fixture]]
* [[Fixture:getMask]]
[[Category:Functions]]
{{#set:Description=Sets which categories this fixture should '''NOT''' collide with.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Fixture:setMask}}