Difference between revisions of "B2.DebugDraw:setFlags"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the debug drawing flags. These flags are available:<br /> <br /> <ul><br /> <li&g...")
 
Line 18: Line 18:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= b2.DebugDraw:setFlags(flags,)
+
b2.DebugDraw:setFlags(flags)
 
</source>
 
</source>
'''flags:''' (number) debug draw flags ''''''<br/>
+
'''flags''': (number) debug draw flags ''''''<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the debug drawing flags. These flags are available:

<ul>
<li>`b2.DebugDraw.SHAPE_BIT`</li>
<li>`b2.DebugDraw.JOINT_BIT`</li>
<li>`b2.DebugDraw.AABB_BIT`</li>
<li>`b2.DebugDraw.PAIR_BIT`</li>
<li>`b2.DebugDraw.CENTER_OF_MASS_BIT`</li>
</ul>

`b2.DebugDraw.SHAPE_BIT` is set by default.

Because Lua doesn't support bitwise operations by default, you can use ` ` operator to combine flags.

 b2.DebugDraw:setFlags(flags)

'flags: (number) debug draw flags '