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>")
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Sets the categories this fixture can collide with.
 
Sets the categories this fixture can collide with.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
r3d.Fixture:setCollideWithMaskBits(bits)
 
r3d.Fixture:setCollideWithMaskBits(bits)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 12: Line 12:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
</source>
+
</syntaxhighlight>
  
 
{{R3d.Fixture}}
 
{{R3d.Fixture}}

Latest revision as of 14:32, 13 July 2023

Available since: Gideros 2019.10
Class: R3d.Fixture

Description

Sets the categories this fixture can collide with.

r3d.Fixture:setCollideWithMaskBits(bits)

Parameters

bits: (number) the sum of all the fixtures category bits this fixture can collide with

Example