##### Views

- Page
- Discussion
- View source
- History

# Fixture:setMask

Available since LÖVE 0.8.0
This method is not supported in earlier versions.

| 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

Fixture:setMask( mask1, mask2, ... )

### Arguments

`number mask1`
  The first category.
`number mask2`
  The second category.

### Returns

Nothing.

## See Also

- Fixture
- Fixture:getMask

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/Fixture:setMask"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties