Difference between revisions of "Fixture:setMask"

(Added Fixture:setMask.)
 
m
Line 1: Line 1:
{{newin|[[0.8.0]]|type=function}}
+
{{newin|[[0.8.0]]|080|type=method}}
 
Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16.
 
Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16.
  

Revision as of 13:38, 4 May 2012

Available since LÖVE 0.8.0
This method is not supported in earlier versions.

Sets the category mask of the fixture. There can be up to 16 categories represented as a number from 1 to 16.

This fixture will collide with the fixtures that are in the selected categories if the other fixture also has a category of this fixture selected.

Function

Synopsis

Fixture:setMask( mask1, mask2, ... )

Arguments

number mask1
The first category.
number mask2
The second category.

Returns

Nothing.

See Also


Other Languages