Difference between revisions of "R3d.Fixture:setCollideWithMaskBits"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 6: Line 6:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
r3d.Fixture:setCollideWithMaskBits(bits)
 
r3d.Fixture:setCollideWithMaskBits(bits)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 13: Line 13:
 
=== Example ===
 
=== Example ===
 
<syntaxhighlight 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