Difference between revisions of "R3d.Fixture:setCollideWithMaskBits"
From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Fixture<br/> === Description === Sets the categories this fixture can collide with. <source lang="lua"> r3d.F...") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 4: | Line 4: | ||
=== Description === | === Description === | ||
Sets the categories this fixture can collide with. | Sets the categories this fixture can collide with. | ||
− | < | + | <syntaxhighlight lang="lua"> |
r3d.Fixture:setCollideWithMaskBits(bits) | r3d.Fixture:setCollideWithMaskBits(bits) | ||
</source> | </source> | ||
Line 12: | Line 12: | ||
=== Example === | === Example === | ||
− | < | + | <syntaxhighlight lang="lua"> |
</source> | </source> | ||
{{R3d.Fixture}} | {{R3d.Fixture}} |
Revision as of 14:30, 13 July 2023
Available since: Gideros 2019.10
Class: R3d.Fixture
Description
Sets the categories this fixture can collide with. <syntaxhighlight lang="lua"> r3d.Fixture:setCollideWithMaskBits(bits) </source>
Parameters
bits: (number) the sum of all the fixtures category bits this fixture can collide with
Example
<syntaxhighlight lang="lua"> </source>