Difference between revisions of "B2.DebugDraw"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <!-- GIDEROSOBJ:b2.DebugDraw --> | ||
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
Line 15: | Line 16: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Methods</translate> === | === <translate>Methods</translate> === | ||
− | [[Special:MyLanguage/b2.DebugDraw.new|b2.DebugDraw.new]] <br/> | + | [[Special:MyLanguage/b2.DebugDraw.new|b2.DebugDraw.new]] <br/><!-- GIDEROSMTD:b2.DebugDraw.new --> |
− | [[Special:MyLanguage/b2.DebugDraw:appendFlags|b2.DebugDraw:appendFlags]] ''<translate>append flags to the current flags</translate>''<br/> | + | [[Special:MyLanguage/b2.DebugDraw:appendFlags|b2.DebugDraw:appendFlags]] ''<translate>append flags to the current flags</translate>''<br/><!-- GIDEROSMTD:b2.DebugDraw:appendFlags --> |
− | [[Special:MyLanguage/b2.DebugDraw:clearFlags|b2.DebugDraw:clearFlags]] ''<translate>clear flags from the current flags</translate>''<br/> | + | [[Special:MyLanguage/b2.DebugDraw:clearFlags|b2.DebugDraw:clearFlags]] ''<translate>clear flags from the current flags</translate>''<br/><!-- GIDEROSMTD:b2.DebugDraw:clearFlags --> |
− | [[Special:MyLanguage/b2.DebugDraw:getFlags|b2.DebugDraw:getFlags]] ''<translate>returns the debug drawing flags</translate>''<br/> | + | [[Special:MyLanguage/b2.DebugDraw:getFlags|b2.DebugDraw:getFlags]] ''<translate>returns the debug drawing flags</translate>''<br/><!-- GIDEROSMTD:b2.DebugDraw:getFlags --> |
− | [[Special:MyLanguage/b2.DebugDraw:setFlags|b2.DebugDraw:setFlags]] ''<translate>sets the debug drawing flags</translate>''<br/> | + | [[Special:MyLanguage/b2.DebugDraw:setFlags|b2.DebugDraw:setFlags]] ''<translate>sets the debug drawing flags</translate>''<br/><!-- GIDEROSMTD:b2.DebugDraw:setFlags --> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== <translate>Events</translate> === | === <translate>Events</translate> === | ||
=== <translate>Constants</translate> === | === <translate>Constants</translate> === | ||
− | [[Special:MyLanguage/b2.DebugDraw.AABB_BIT|b2.DebugDraw.AABB_BIT]]<br/> | + | [[Special:MyLanguage/b2.DebugDraw.AABB_BIT|b2.DebugDraw.AABB_BIT]]<br/><!-- GIDEROSCST:b2.DebugDraw.AABB_BIT --> |
− | [[Special:MyLanguage/b2.DebugDraw.CENTER_OF_MASS_BIT|b2.DebugDraw.CENTER_OF_MASS_BIT]]<br/> | + | [[Special:MyLanguage/b2.DebugDraw.CENTER_OF_MASS_BIT|b2.DebugDraw.CENTER_OF_MASS_BIT]]<br/><!-- GIDEROSCST:b2.DebugDraw.CENTER_OF_MASS_BIT --> |
− | [[Special:MyLanguage/b2.DebugDraw.JOINT_BIT|b2.DebugDraw.JOINT_BIT]]<br/> | + | [[Special:MyLanguage/b2.DebugDraw.JOINT_BIT|b2.DebugDraw.JOINT_BIT]]<br/><!-- GIDEROSCST:b2.DebugDraw.JOINT_BIT --> |
− | [[Special:MyLanguage/b2.DebugDraw.PAIR_BIT|b2.DebugDraw.PAIR_BIT]]<br/> | + | [[Special:MyLanguage/b2.DebugDraw.PAIR_BIT|b2.DebugDraw.PAIR_BIT]]<br/><!-- GIDEROSCST:b2.DebugDraw.PAIR_BIT --> |
− | [[Special:MyLanguage/b2.DebugDraw.SHAPE_BIT|b2.DebugDraw.SHAPE_BIT]]<br/> | + | [[Special:MyLanguage/b2.DebugDraw.SHAPE_BIT|b2.DebugDraw.SHAPE_BIT]]<br/><!-- GIDEROSCST:b2.DebugDraw.SHAPE_BIT --> |
|} | |} |
Revision as of 14:56, 31 August 2018
Supported platforms:
Available since: Gideros 2011.6
Inherits from: Sprite
Description
The b2.DebugDraw class is used to provide debug drawing of physical entities in your application.
Examples
Example
local debugDraw = b2.DebugDraw.new()
world:setDebugDraw(debugDraw)
stage:addChild(debugDraw)
Methodsb2.DebugDraw.new |
EventsConstantsb2.DebugDraw.AABB_BIT |