##### Views

- Page
- Discussion
- View source
- History

# Shape:getMask

Removed in LÖVE 0.8.0
Use Fixture:getMask instead.

Gets which categories this shape should NOT collide with. The number of masked categories is the number of return values.

## Function

### Synopsis

... = Shape:getMask( )

### Arguments

None.

### Returns

`number ...`
  Numbers from 1-16

## Examples

### With how many categories does this shape collide?

print('shape collides with', select('#', shape:getMask()), 'categories')

## See Also

- Shape
- Shape:setMask

## 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/Shape:getMask"
Categories: Templates | Functions

##### Personal tools

- Log in

##### Search

##### Toolbox

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