B2.World:setDebugDraw

From GiderosMobile
Revision as of 14:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2011.6
Class: b2.World

Description

Registers a b2.DebugDraw instance for debug drawing. <syntaxhighlight lang="lua"> b2.World:setDebugDraw() </source>

Example

<syntaxhighlight lang="lua"> local debugDraw = b2.DebugDraw.new() debugDraw:setFlags(b2.DebugDraw.SHAPE_BIT + b2.DebugDraw.JOINT_BIT + b2.DebugDraw.PAIR_BIT) world:setDebugDraw(debugDraw) stage:addChild(debugDraw) </source>

See also

B2.DebugDraw





LiquidFun