B2.DebugDraw:setFlags
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.DebugDraw
Description
Sets the debug drawing flags. These flags are available:
- b2.DebugDraw.SHAPE_BIT
- b2.DebugDraw.JOINT_BIT
- b2.DebugDraw.AABB_BIT
- b2.DebugDraw.PAIR_BIT
- b2.DebugDraw.CENTER_OF_MASS_BIT
b2.DebugDraw.SHAPE_BIT is set by default.
Because Lua doesn't support bitwise operations by default, you can use "|" operator to combine flags.
b2.DebugDraw:setFlags(flags)
Parameters
flags: (number) debug draw flags
Examples
local debugDraw = b2.DebugDraw.new()
debugDraw:setFlags(b2.DebugDraw.SHAPE_BIT | b2.DebugDraw.JOINT_BIT)