B2.World:setDebugDraw

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2011.6
Class: b2.World

Description

Registers a b2.DebugDraw instance for debug drawing.

b2.World:setDebugDraw()

Example

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)

See also

B2.DebugDraw





LiquidFun