Difference between revisions of "Shape:setMask"

(Added oldin notice)
(Old in 0.8.0 (at latest))
Line 1: Line 1:
{{oldin|[[0.8.0]]|080|type=method|text=Use [[Fixture:setMask]] instead}}Sets which categories this shape should '''NOT''' collide with.
+
{{oldin|[[0.8.0]]|080|type=method|text=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.
 
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 ==

Revision as of 17:27, 7 May 2012

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