Difference between revisions of "Shape:setMask"
m |
|||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{oldin|[[0.8.0]]|080|type=function|text=Use [[Fixture:setMask]] instead}} | ||
Sets which categories this shape should '''NOT''' collide with. | 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. | 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. | ||
Line 7: | Line 8: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param| | + | {{param|number|...|Numbers from 1-16.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | == Examples == | ||
+ | === Only collide with category 6 === | ||
+ | <source lang="lua"> | ||
+ | shape:setMask(1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 15, 16) | ||
+ | </source> | ||
== See Also == | == See Also == | ||
* [[parent::Shape]] | * [[parent::Shape]] | ||
+ | * [[Shape:getMask]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Sets which categories this shape should '''NOT''' collide with. | + | {{#set:Description=Sets which categories this shape should '''NOT''' collide with.}} |
− | }} | + | {{#set:Since=000}} |
+ | == Others Languages == | ||
+ | {{i18n|Shape:setMask}} |
Latest revision as of 17:52, 29 May 2013
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.
Contents
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
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