Difference between revisions of "B2.DebugDraw"
From GiderosMobile
Line 2: | Line 2: | ||
'''Supported platforms:''' android, ios, mac, pc<br/> | '''Supported platforms:''' android, ios, mac, pc<br/> | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
The [[Special:MyLanguage/b2.DebugDraw|b2.DebugDraw]] class is used to provide debug drawing of physical entities in your application. <br /> | The [[Special:MyLanguage/b2.DebugDraw|b2.DebugDraw]] class is used to provide debug drawing of physical entities in your application. <br /> | ||
<br /></translate> | <br /></translate> | ||
− | === Examples === | + | === <translate>Examples</translate> === |
'''Example'''<br/> | '''Example'''<br/> | ||
<source lang="lua">local debugDraw = b2.DebugDraw.new() | <source lang="lua">local debugDraw = b2.DebugDraw.new() | ||
Line 13: | Line 13: | ||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === Methods === | + | === <translate>Methods</translate> === |
[[Special:MyLanguage/b2.DebugDraw.new|b2.DebugDraw.new]] <br/> | [[Special:MyLanguage/b2.DebugDraw.new|b2.DebugDraw.new]] <br/> | ||
[[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/> | ||
Line 20: | Line 20: | ||
[[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/> | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === Events === | + | === <translate>Events</translate> === |
− | === Constants === | + | === <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/> | ||
[[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/> |
Revision as of 07:28, 24 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
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 |