Difference between revisions of "B2.World:setDebugDraw"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate><br /> | <translate><br /> | ||
Registers a b2.DebugDraw instance for debug drawing.<br /> | Registers a b2.DebugDraw instance for debug drawing.<br /> | ||
Line 8: | Line 8: | ||
b2.World:setDebugDraw() | b2.World:setDebugDraw() | ||
</source> | </source> | ||
− | === Examples === | + | === <translate>Examples</translate> === |
'''Example'''<br/> | '''Example'''<br/> | ||
<source lang="lua">local debugDraw = b2.DebugDraw.new() | <source lang="lua">local debugDraw = b2.DebugDraw.new() | ||
world:setDebugDraw(debugDraw) | world:setDebugDraw(debugDraw) | ||
stage:addChild(debugDraw)</source> | stage:addChild(debugDraw)</source> |
Revision as of 07:29, 24 August 2018
Available since: Gideros 2011.6
Description
Registers a b2.DebugDraw instance for debug drawing.
b2.World:setDebugDraw()
Examples
Example
local debugDraw = b2.DebugDraw.new()
world:setDebugDraw(debugDraw)
stage:addChild(debugDraw)