Difference between revisions of "Shape:setMask"

Line 1: Line 1:
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.
 
== Function ==
 
== Function ==
Line 13: Line 13:
 
* [[parent::Shape]]
 
* [[parent::Shape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets which categories this shape should collide with.
+
{{#set:Description=Sets which categories this shape should '''NOT''' collide with.
 
}}
 
}}

Revision as of 16:02, 13 September 2010

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

numbers ...
Numbers from 1-16.

Returns

Nothing.

See Also