Shape:setMask

Shape:setMask

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

Sets which categories this shape should NOT collide with. With this function, you can exclude certain shape categories from collisions with this shape. The categories passed as parameters will be excluded from collisions - all others included.

Function

Synopsis

Shape:setMask( ... )

Arguments

number ...
Numbers from 1-16.

Returns

Nothing.

Examples

Only collide with category 6

shape:setMask(1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 15, 16)

See Also


Others Languages

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Shape:setMask

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部